@import url("base.css?v=5");
/* Cổng người thuê và trang chọn vai trò — phong cách ứng dụng di động: nền kem, xanh olive đậm, bo tròn lớn */
:root { --olive: #3a4029; --olive-2: #4d553a; --cream: #f3efe7; --paper: #fffdf8; --sand: #e9e3d6; --clay: #c8743a; --sage: #8f9a72; }
body.app { background: var(--cream); min-height: 100vh; }
.serif { font-family: "Fraunces", Georgia, serif; font-weight: 500; letter-spacing: -.01em; }
.phone { width: min(480px, 100%); margin: 0 auto; min-height: 100vh; padding: 18px 16px 104px; position: relative; }
.phone.bare { padding-bottom: 32px; }
.flash { border-radius: 14px; }
.muted { color: var(--muted); } .c { text-align: center; }
.app-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 6px 0 16px; }
.app-head h1 { margin: 0; font-size: 1.45rem; font-weight: 600; } .app-head small { display: block; }
.icon-btn { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); border: 1px solid var(--sand); color: var(--ink); cursor: pointer; box-shadow: 0 2px 8px rgba(60,50,30,.06); }
.icon-btn:hover { text-decoration: none; color: var(--ink); }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 600; background: var(--sand); color: var(--olive); white-space: nowrap; }
.pill.ok { background: #e3ead7; color: #47652f; } .pill.warn, .pill.muted { background: #f6e6d3; color: #95561c; } .pill.bad { background: #f5ddd6; color: #a3352a; } .pill.info { background: #e8e8dc; color: var(--olive); }
.pill.glass { background: rgba(255,255,255,.18); color: #fff; backdrop-filter: blur(6px); }
.btn-pill { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 13px 22px; border-radius: 999px; border: 0; font: inherit; font-weight: 600; cursor: pointer; text-decoration: none; }
.btn-pill.dark { background: var(--olive); color: #fff; width: 100%; } .btn-pill.dark:hover { background: var(--olive-2); color: #fff; text-decoration: none; }
.btn-pill.light { background: var(--paper); color: var(--olive); padding: 9px 16px; } .btn-pill.ghost { background: rgba(255,255,255,.18); color: #fff; padding: 9px 16px; }
.card.soft { background: var(--paper); border: 1px solid var(--sand); border-radius: 22px; box-shadow: 0 4px 18px rgba(60,50,30,.05); }
/* Thẻ phòng lớn kiểu ảnh bìa */
.hero-card { position: relative; min-height: 210px; border-radius: 26px; padding: 16px; color: #fff; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden;
  background: radial-gradient(120% 90% at 85% 10%, #6d7652 0%, transparent 55%), linear-gradient(160deg, #4d553a, #262a1b); background-size: cover; background-position: center; box-shadow: 0 10px 30px rgba(42,47,32,.25); }
.hero-card .pill { align-self: flex-start; }
.hero-foot { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px; } .hero-foot b { display: block; font-size: 1.05rem; } .hero-foot small { opacity: .8; font-size: 12px; }
.hero-meta { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12px; opacity: .85; border-top: 1px solid rgba(255,255,255,.2); padding-top: 10px; margin-top: 10px; }
.bill-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin: 14px 0; padding: 18px; border-radius: 22px; text-decoration: none; color: #fff; background: var(--olive); }
.bill-card.due { background: linear-gradient(135deg, #b5672f, #8e4a20); } .bill-card:hover { text-decoration: none; color: #fff; }
.bill-card small { display: block; opacity: .85; } .bill-card b { display: block; font-size: 1.6rem; margin: 2px 0; } .bill-card span { font-size: 12px; opacity: .9; }
.warn-line { color: var(--bad); font-size: 13px; margin: -6px 4px 12px; }
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 14px 0 8px; }
.tile { display: grid; justify-items: center; gap: 6px; padding: 14px 4px; background: var(--paper); border: 1px solid var(--sand); border-radius: 20px; color: var(--olive); font-size: 12px; font-weight: 600; text-decoration: none; }
.tile:hover { background: var(--olive); color: #fff; text-decoration: none; }
.sec-head { display: flex; justify-content: space-between; align-items: baseline; margin: 20px 2px 10px; } .sec-head h2 { margin: 0; font-size: 1.05rem; font-weight: 600; } .sec-head a { font-size: 12px; color: var(--muted); }
.ann { background: var(--paper); border: 1px solid var(--sand); border-left: 4px solid var(--sage); border-radius: 18px; padding: 14px 16px; margin-bottom: 10px; }
.ann.quan-trong { border-left-color: var(--clay); } .ann.khan { border-left-color: var(--bad); }
.ann-top { display: flex; gap: 6px; align-items: center; } .ann-top small { margin-left: auto; color: var(--muted); font-size: 11px; }
.ann h3 { margin: 8px 0 2px; font-size: 1rem; font-weight: 600; } .ann-body { color: #57534a; font-size: 13px; } .ann-body p { margin: .3em 0; }
.svc { list-style: none; padding: 0; margin: 0; display: grid; } .svc li { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--sand); } .svc li:last-child { border: 0; } .svc span { display: flex; gap: 8px; align-items: center; color: var(--olive); }
.row-card { display: flex; align-items: center; gap: 12px; padding: 12px; background: var(--paper); border: 1px solid var(--sand); border-radius: 18px; margin-bottom: 10px; color: var(--ink); text-decoration: none; }
.row-card:hover { text-decoration: none; color: var(--ink); border-color: var(--sage); }
.row-ic { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 14px; background: var(--sand); color: var(--olive); flex-shrink: 0; }
.row-main { flex: 1; min-width: 0; display: grid; } .row-main small { color: var(--muted); font-size: 12px; } .row-end { display: grid; justify-items: end; gap: 4px; }
.sum-card { padding: 18px; border-radius: 22px; background: var(--olive); color: #fff; margin-bottom: 14px; display: grid; gap: 2px; } .sum-card small, .sum-card span { opacity: .8; font-size: 12px; } .sum-card b { font-size: 1.7rem; } .sum-card b.okc { color: #cfe0b4; }
.rules h3 { font-size: 1rem; color: var(--olive); margin: 1.1em 0 .4em; } .rules h3:first-child { margin-top: 0; } .rules ul { padding-left: 1.1em; margin: 0; } .rules li { margin: .3em 0; }
.stack { display: grid; gap: 12px; } .stack label { display: grid; gap: 6px; font-weight: 600; font-size: 13px; }
.paper.invoice { border-radius: 22px; padding: 18px; font-size: 13px; } .paper.invoice .table td, .paper.invoice .table th { padding: 6px 4px; }
/* Thanh điều hướng dưới cùng */
.tabbar { position: fixed; left: 50%; bottom: 14px; transform: translateX(-50%); width: min(448px, calc(100% - 24px)); display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; padding: 7px; background: var(--paper); border: 1px solid var(--sand); border-radius: 999px; box-shadow: 0 10px 30px rgba(42,47,32,.15); z-index: 20; padding-bottom: calc(7px + env(safe-area-inset-bottom, 0px) / 2); }
.tabbar a { position: relative; display: grid; justify-items: center; gap: 2px; padding: 8px 0; border-radius: 999px; color: var(--muted); font-size: 11px; font-weight: 600; text-decoration: none; }
.tabbar a.on { background: var(--olive); color: #fff; } .tabbar a:hover { text-decoration: none; }
.tabbar .dot { position: absolute; top: 6px; right: calc(50% - 16px); width: 8px; height: 8px; border-radius: 50%; background: var(--clay); border: 2px solid var(--paper); }
/* Nhập mã */
.login .back { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; background: var(--paper); border: 1px solid var(--sand); color: var(--ink); }
.login-art { display: grid; place-items: center; width: 96px; height: 96px; margin: 28px auto 18px; border-radius: 30px; background: var(--paper); border: 1px solid var(--sand); box-shadow: 0 10px 30px rgba(42,47,32,.1); }
.login h1 { text-align: center; font-size: 2rem; margin: 0 0 8px; } .login > p { text-align: center; }
.code-form { display: grid; gap: 12px; margin: 22px 0 14px; }
.code-input { text-align: center; font: 700 1.6rem/1 ui-monospace, Consolas, monospace !important; letter-spacing: .18em; text-transform: uppercase; padding: 16px !important; border-radius: 20px !important; border: 1.5px solid var(--sand) !important; background: var(--paper) !important; }
.hint { padding: 12px 14px; border-radius: 16px; background: #f6e6d3; color: #7a4515; font-size: 13px; margin: 12px 0; text-align: center; }
/* Trang chọn vai trò */
.land-head { margin: 4px 0 26px; } .brand { display: flex; gap: 10px; align-items: center; } .brand span { display: grid; line-height: 1.15; } .brand b { font-size: 15px; letter-spacing: .02em; } .brand small { font-size: 11px; color: var(--muted); letter-spacing: .12em; text-transform: uppercase; }
.landing h1 { font-size: clamp(2rem, 9vw, 2.6rem); line-height: 1.1; margin: 0 0 12px; } .landing h1 em { font-style: italic; color: var(--clay); }
.eyebrow { margin: 26px 2px 10px; font-size: 11px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.role { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 24px; margin-bottom: 12px; text-decoration: none; transition: transform .15s; }
.role:hover { transform: translateY(-2px); text-decoration: none; }
.role > div:nth-child(2) { flex: 1; display: grid; gap: 3px; } .role b { font-size: 1.1rem; } .role span { font-size: 13px; opacity: .8; }
.role-ic { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 18px; flex-shrink: 0; }
.role.owner { background: var(--olive); color: #fff; } .role.owner:hover { color: #fff; } .role.owner .role-ic { background: rgba(255,255,255,.12); color: #e3a26f; }
.role.tenant { background: var(--paper); border: 1px solid var(--sand); color: var(--ink); } .role.tenant:hover { color: var(--ink); } .role.tenant .role-ic { background: #f6e6d3; color: var(--clay); }
.feat { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 22px 0; } .feat div { display: grid; gap: 4px; padding: 14px 12px; border-radius: 18px; background: var(--paper); border: 1px solid var(--sand); color: var(--olive); }
.feat b { font-size: 13px; color: var(--ink); } .feat small { font-size: 11px; color: var(--muted); }
.vacant { display: flex; align-items: center; justify-content: space-between; padding: 16px 18px; border-radius: 20px; background: var(--sand); color: var(--olive); text-decoration: none; }
.vacant span { display: grid; } .vacant small { color: var(--muted); font-size: 12px; } .vacant:hover { text-decoration: none; color: var(--olive); }
@media (min-width: 900px) { body.landing .phone { padding-top: 48px; } }
@media print { .tabbar, .app-head .icon-btn { display: none !important; } .phone { padding: 0; } }
.hint a { color: #7a4515; font-weight: 600; text-decoration: underline; }

/* ===== v3 ===== */
.tiles { grid-template-columns: repeat(3, 1fr); }
.rule-note { display: flex; gap: 10px; align-items: flex-start; color: var(--olive); } .rule-note p { margin: 0; font-size: 13px; color: #57534a; }
.form-2 { margin-top: 12px; } .stack input { width: 100%; padding: 11px 14px; border: 1px solid var(--sand); border-radius: 14px; background: #fff; font: inherit; }
.link-btn { border: 0; background: none; color: var(--bad); font: inherit; font-size: 12px; cursor: pointer; padding: 0; }
.doc-actions { display: flex; gap: 8px; margin-bottom: 12px; } .doc-actions .btn-pill { flex: 1; padding: 11px; } .doc-actions .btn-pill.light { border: 1px solid var(--sand); }
.a4-scroll { overflow-x: auto; margin: 0 -16px; padding: 0 16px 8px; } .a4-scroll .a4 { width: 794px; max-width: none; transform-origin: top left; }
.app-credit { margin: 28px -16px -104px; padding: 16px 16px 112px; flex-direction: column; align-items: flex-start; border-radius: 22px 22px 0 0; font-size: 12px; }
.phone.bare .app-credit { margin-bottom: -32px; padding-bottom: 24px; }
.confirm-box { display: grid; gap: 10px; margin-bottom: 12px; border-color: #ecd3b8; background: #fbf1e6; } .confirm-box p { margin: 0; font-size: 13px; color: #6b3d14; }
