@font-face {
    font-family: Estedad;
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("https://cdn.jsdelivr.net/gh/aminabedi68/Estedad@v7.3/webfonts/static/woff2/Estedad-Regular.woff2") format("woff2");
}
@font-face {
    font-family: Estedad;
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("https://cdn.jsdelivr.net/gh/aminabedi68/Estedad@v7.3/webfonts/static/woff2/Estedad-SemiBold.woff2") format("woff2");
}
@font-face {
    font-family: Estedad;
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("https://cdn.jsdelivr.net/gh/aminabedi68/Estedad@v7.3/webfonts/static/woff2/Estedad-ExtraBold.woff2") format("woff2");
}

:root {
    --olive: #355534;
    --olive-dark: #1c2b1c;
    --leaf: #6e8b57;
    --gold: #b08d4a;
    --stone: #d8ddd2;
    --paper: #f4f1ea;
    --ink: #1c241b;
    --muted: #5e675c;
    --danger: #9b3a32;
    --ok: #2f6b45;
    --card: rgba(247, 246, 241, 0.92);
    --radius: 18px;
    --shadow: 0 10px 30px rgba(28, 36, 27, 0.08);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body {
    font-family: Estedad, Tahoma, sans-serif;
    color: var(--ink);
    background:
        radial-gradient(1200px 500px at 100% -10%, rgba(var(--pattern, 53, 85, 52), 0.12), transparent 50%),
        radial-gradient(900px 400px at -10% 20%, rgba(var(--pattern, 53, 85, 52), 0.10), transparent 45%),
        linear-gradient(180deg, var(--bg1, #eef3ea) 0%, var(--bg2, #e4eadc) 40%, var(--bg3, #dfe6d6) 100%);
    line-height: 1.8;
}
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    opacity: .16;
    z-index: 0;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160' viewBox='0 0 160 160'><g fill='none' stroke='%23355534' stroke-width='1.2' opacity='.55'><path d='M20 140c20-40 30-70 20-110'/><path d='M22 80c18 6 28 18 30 34'/><ellipse cx='42' cy='48' rx='10' ry='16' transform='rotate(-30 42 48)'/><ellipse cx='58' cy='42' rx='9' ry='14' transform='rotate(20 58 42)'/><path d='M110 20c-10 30 10 50 40 58'/></g></svg>");
}
body.theme-bg-none::before { display: none; }
body.theme-bg-dots::before {
    opacity: .22;
    background-image: radial-gradient(rgba(var(--pattern, 53, 85, 52), 0.35) 1.2px, transparent 1.3px);
    background-size: 18px 18px;
}
body.theme-bg-waves::before {
    opacity: .2;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='40' viewBox='0 0 120 40'><path fill='none' stroke='%23355534' stroke-width='1.4' opacity='.45' d='M0 20c20-12 40-12 60 0s40 12 60 0'/></svg>");
    background-size: 120px 40px;
}
body.theme-bg-mesh::before {
    opacity: .14;
    background-image:
        linear-gradient(rgba(var(--pattern, 53, 85, 52), 0.18) 1px, transparent 1px),
        linear-gradient(90deg, rgba(var(--pattern, 53, 85, 52), 0.18) 1px, transparent 1px);
    background-size: 28px 28px;
}
a { color: var(--olive); text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font-family: inherit; font-size: 1rem; }

.shell {
    position: relative;
    z-index: 1;
    width: min(430px, 100%);
    margin: 0 auto;
    min-height: 100dvh;
    padding: 16px 16px 108px;
}

.site-head {
    text-align: center;
    padding: 18px 8px 8px;
}
.eyebrow {
    letter-spacing: .12em;
    font-size: .78rem;
    color: var(--olive);
    margin: 0 0 6px;
}
.site-head h1, .hero-card h1, .card h1, .card h2 {
    margin: 0 0 8px;
    font-size: 1.35rem;
    color: var(--olive-dark);
}
.muted { color: var(--muted); margin: 0; }

.card, .hero-card {
    background: var(--card);
    border: 1px solid rgba(53, 85, 52, 0.12);
    border-radius: var(--radius);
    padding: 18px;
    margin: 12px 0;
    box-shadow: var(--shadow);
    backdrop-filter: blur(8px);
}
.hero-card {
    background:
        linear-gradient(160deg, rgba(28, 43, 28, 0.92), rgba(53, 85, 52, 0.82)),
        radial-gradient(circle at 80% 20%, rgba(176,141,74,.35), transparent 40%);
    color: #f4f1ea;
}
.hero-card h1, .hero-card .eyebrow, .hero-card p { color: #f4f1ea; }
.hero-card .muted { color: rgba(244,241,234,.82); }

.stack { display: grid; gap: 12px; }
label { display: grid; gap: 6px; font-size: .92rem; }
input[type=text], input[type=password], input[type=tel], input[type=url], input[type=number], input[type=time], input[type=file], select, textarea {
    width: 100%;
    border: 1px solid #c9d1c4;
    background: #fff;
    border-radius: 12px;
    padding: 12px 14px;
}
textarea { min-height: 84px; resize: vertical; }
input:focus, select:focus, textarea:focus {
    outline: 2px solid var(--gold);
    outline-offset: 1px;
}

.btn, .btn-outline, .btn-gold {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border: 0;
    border-radius: 14px;
    padding: 13px 16px;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
}
.btn { background: var(--olive-dark); color: #fff; transition: transform .15s ease, box-shadow .15s ease, opacity .15s ease; }
.btn-gold { background: var(--gold); color: #1c241b; transition: transform .15s ease, box-shadow .15s ease; }
.btn-outline { background: transparent; color: var(--olive-dark); border: 1.5px solid var(--olive); transition: background .15s ease, transform .15s ease; }
.btn:hover, .btn-gold:hover { transform: translateY(-1px); box-shadow: 0 6px 16px rgba(28, 43, 28, .18); }
.btn-outline:hover { background: rgba(53, 85, 52, .08); }
.btn:active, .btn-gold:active, .btn-outline:active { transform: translateY(0); }
.btn.is-loading { opacity: .75; pointer-events: none; }
.btn.copied, .btn-outline.copied, .btn-gold.copied { background: var(--ok); color: #fff; border-color: var(--ok); }
.btn-row { display: flex; gap: 8px; }
.btn-row .btn, .btn-row .btn-outline, .btn-row .btn-gold { width: auto; flex: 1; }

.alert { padding: 12px 14px; border-radius: 12px; margin: 10px 0; }
.alert-error { background: #f8e4e1; color: var(--danger); }
.alert-ok { background: #e3f2e6; color: var(--ok); }

.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li {
    display: flex;
    justify-content: space-between;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid var(--stone);
    font-size: .9rem;
}
.check-list .ok { color: var(--ok); }
.check-list .bad { color: var(--danger); }

.flower-card {
    display: grid;
    grid-template-columns: 92px 1fr;
    gap: 12px;
    padding: 12px;
    border: 1px solid #d5ddd0;
    border-radius: 16px;
    background: #fff;
    margin-bottom: 10px;
}
.flower-card.on { border-color: var(--gold); box-shadow: inset 0 0 0 1px var(--gold); }
.flower-photo {
    width: 92px;
    height: 92px;
    border-radius: 14px;
    object-fit: cover;
    background: linear-gradient(160deg, #dfe8d6, #c5d1b8);
}
.qty {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
}
.qty button {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    background: var(--olive);
    color: #fff;
    font-size: 1.2rem;
}
.qty input { width: 54px; text-align: center; padding: 8px; }

.bottom-nav, .wizard-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: min(430px, 100%);
    background: rgba(244, 241, 234, 0.96);
    border-top: 1px solid #d5ddd0;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom));
    z-index: 5;
    display: flex;
    gap: 8px;
}
.bottom-nav a {
    flex: 1;
    text-align: center;
    font-size: .75rem;
    color: var(--muted);
    padding: 6px 4px;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    transition: background .15s ease, color .15s ease;
}
.nav-ico { font-size: 1.1rem; line-height: 1; opacity: .85; }
.bottom-nav a.active { background: #e7eee1; color: var(--olive-dark); font-weight: 700; }
.bottom-nav a.active .nav-ico { opacity: 1; }

.steps {
    display: flex;
    gap: 4px;
    margin: 8px 0 14px;
}
.steps span {
    flex: 1;
    height: 6px;
    border-radius: 99px;
    background: #d5ddd0;
}
.steps span.on { background: var(--olive); }
.steps span.done { background: var(--gold); }
.step-label { font-size: .85rem; color: var(--muted); margin-bottom: 8px; }

.panel { display: none; }
.panel.active { display: block; animation: rise .25s ease; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 999px;
    background: #e7eee1;
    color: var(--olive-dark);
    font-size: .8rem;
}
.badge.wait { background: #f4ead3; }
.badge.ok { background: #dcecde; color: var(--ok); }
.badge.bad { background: #f8e4e1; color: var(--danger); }

.cal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(28, 36, 27, .45);
    z-index: 20;
    display: none;
    align-items: flex-end;
    justify-content: center;
}
.cal-overlay.open { display: flex; }
.cal-sheet {
    width: min(430px, 100%);
    background: #f7f6f1;
    border-radius: 20px 20px 0 0;
    padding: 16px;
}
.cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; }
.cal-grid b { font-size: .75rem; color: var(--muted); font-weight: 600; }
.cal-grid button {
    border: 0;
    background: #fff;
    border-radius: 10px;
    height: 40px;
}
.cal-grid button.on { background: var(--olive-dark); color: #fff; }
.cal-grid button.disabled,
.cal-grid button:disabled {
    opacity: .35;
    cursor: not-allowed;
    background: #eef2ea;
    color: var(--muted);
}
.copy-row { display: flex; gap: 8px; align-items: center; }
.copy-row code {
    flex: 1;
    direction: ltr;
    text-align: center;
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    letter-spacing: 1px;
}
.unit-card { border: 1px dashed #c9d1c4; border-radius: 14px; padding: 12px; margin-bottom: 10px; background: #fff; }
.price-xl { font-size: 1.5rem; font-weight: 800; color: var(--olive-dark); }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 6px 0 6px 12px; border-right: 2px solid #d5ddd0; }
.timeline li.done { border-color: var(--ok); color: var(--ok); }
.empty { text-align: center; color: var(--muted); padding: 24px 8px; }
.install-body .shell { padding-bottom: 32px; }

.ceremony-pick-wrap { margin-bottom: 10px; }
.ceremony-pick {
    display: block;
    position: relative;
    border: 1.5px solid #d5ddd0;
    border-radius: 16px;
    padding: 14px 48px 14px 14px;
    margin: 0;
    background: #fff;
    cursor: pointer;
    transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}
.ceremony-pick::before {
    content: "";
    position: absolute;
    right: 14px;
    top: 18px;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    border: 2px solid #c9d1c4;
    background: #fff;
    transition: border-color .2s ease, background .2s ease;
    flex-shrink: 0;
}
.ceremony-pick.on {
    border-color: var(--gold);
    box-shadow: 0 4px 14px rgba(176, 141, 74, .18);
    background: #fbf8f0;
}
.ceremony-pick.on::before {
    border-color: var(--gold);
    background: var(--gold);
    box-shadow: inset 0 0 0 4px #fbf8f0;
}
.ceremony-body { display: block; min-width: 0; }
.ceremony-pick strong { display: block; margin-bottom: 2px; color: var(--olive-dark); font-size: .98rem; }
.ceremony-meta, .ceremony-sub { display: block; margin-top: 4px; font-size: .86rem; line-height: 1.55; }
.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}
.bank-card {
    background: linear-gradient(135deg, #1c2b1c 0%, #355534 55%, #4a6a3d 100%);
    color: #f4f1ea;
    border-radius: 20px;
    padding: 20px;
    margin: 12px 0;
    box-shadow: 0 12px 28px rgba(28, 43, 28, .28);
    min-height: 180px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}
.bank-card-top { display: flex; justify-content: space-between; align-items: center; }
.bank-chip {
    width: 42px; height: 32px; border-radius: 8px;
    background: linear-gradient(135deg, #e8d48a, #b08d4a);
}
.bank-name { font-size: .9rem; opacity: .95; }
.bank-number {
    font-size: 1.25rem;
    letter-spacing: 3px;
    direction: ltr;
    text-align: center;
    font-weight: 700;
    margin: 18px 0;
}
.bank-bottom { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .85rem; }

/* ——— UI v1.1.2 ——— */
.hero-compact { padding: 22px 18px; }
.hero-compact h1 { font-size: 1.25rem; }

.page-back {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: .88rem;
    color: var(--muted);
    margin: 4px 0 8px;
    padding: 6px 0;
}
.page-back:hover { color: var(--olive-dark); }

.feature-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin: 12px 0;
}
.feature-tile {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 16px 14px;
    border-radius: var(--radius);
    background: var(--card);
    border: 1px solid rgba(53, 85, 52, 0.12);
    box-shadow: var(--shadow);
    color: inherit;
    transition: transform .15s ease, box-shadow .15s ease;
}
.feature-tile:hover { transform: translateY(-2px); box-shadow: 0 12px 24px rgba(28, 36, 27, .1); }
.feature-tile.feature-primary {
    grid-column: 1 / -1;
    background: linear-gradient(145deg, rgba(var(--hero1, 28, 43, 28), .95), rgba(var(--hero2, 53, 85, 52), .88));
    color: #f4f1ea;
    border-color: transparent;
}
.feature-tile.feature-wide { grid-column: 1 / -1; }
.feature-tile.feature-primary .muted { color: rgba(244, 241, 234, .8); }
.feature-ico {
    font-size: 1.4rem;
    line-height: 1;
    margin-bottom: 4px;
    opacity: .9;
}
.feature-tile strong { font-size: .95rem; }
.feature-tile .muted { font-size: .78rem; margin: 0; }

.card-accent {
    border-color: rgba(176, 141, 74, .35);
    background: linear-gradient(180deg, #fbf8f0 0%, var(--card) 100%);
}
.card-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: #e7eee1;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--olive);
}

.steps-list {
    margin: 0;
    padding-right: 20px;
    color: var(--muted);
}
.steps-list li { margin-bottom: 6px; }
.steps-list li::marker { color: var(--gold); font-weight: 700; }

.detail-list { display: grid; gap: 8px; margin-top: 8px; }
.detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    padding: 8px 0;
    border-bottom: 1px dashed #d5ddd0;
    font-size: .9rem;
}
.detail-row span { color: var(--muted); flex-shrink: 0; }
.detail-row strong { text-align: left; font-weight: 600; }

.price-box {
    background: linear-gradient(135deg, #eef3ea, #e7eee1);
    border-radius: 14px;
    padding: 14px 16px;
    text-align: center;
    margin-top: 8px;
}

.order-card {
    display: block;
    background: var(--card);
    border: 1px solid rgba(53, 85, 52, 0.12);
    border-radius: var(--radius);
    padding: 16px;
    margin: 10px 0;
    box-shadow: var(--shadow);
    color: inherit;
    transition: transform .15s ease, border-color .15s ease;
}
.order-card:hover { transform: translateY(-1px); border-color: var(--gold); }
.order-card-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    margin-bottom: 6px;
}

.empty-state { text-align: center; }
.empty-state .empty { padding: 8px 0 16px; }

.toast-box {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 100;
    width: min(380px, calc(100% - 32px));
    pointer-events: none;
}
.toast {
    background: var(--olive-dark);
    color: #fff;
    padding: 12px 16px;
    border-radius: 14px;
    margin-bottom: 8px;
    box-shadow: 0 8px 24px rgba(28, 36, 27, .25);
    font-size: .9rem;
    opacity: 0;
    transform: translateY(-8px);
    transition: opacity .25s ease, transform .25s ease;
}
.toast.show { opacity: 1; transform: translateY(0); }
.toast.toast-error { background: var(--danger); }

.flower-card { transition: border-color .2s ease, box-shadow .2s ease; }
.flower-card:hover { box-shadow: 0 4px 12px rgba(28, 36, 27, .06); }

input[type=file] {
    padding: 10px;
    background: #f7f9f5;
    border-style: dashed;
}

.bottom-nav, .wizard-bar {
    backdrop-filter: blur(12px);
    box-shadow: 0 -4px 20px rgba(28, 36, 27, .08);
}
.wizard-bar .btn, .wizard-bar .btn-outline { flex: 1; }

.timeline li { transition: color .2s ease, border-color .2s ease; }

@media (min-width: 480px) {
    .shell { width: min(480px, 100%); }
    .bottom-nav, .wizard-bar { width: min(480px, 100%); }
    .cal-sheet { width: min(480px, 100%); }
}


.tree-link-bar { text-align: left; padding: 6px 4px 0; font-size: .85rem; }
.tree-link-bar a { color: var(--olive-dark, #1c2b1c); text-decoration: none; opacity: .85; }
.tree-link-bar a:hover { opacity: 1; text-decoration: underline; }
