/* =========================================================
   Vận Khí – HEADER + TRANG CHỦ theo bản HTML/CSS thiết kế.
   Toàn bộ quy tắc gốc được giới hạn trong vùng .vk-scope để không
   đè lên Bootstrap/footer/trang trong. (Phần 1: bản gốc, phần 2: bổ sung cho WordPress.)
   ========================================================= */

.vk-scope{--bg:#f7f1e6;
  --paper:#fbf7ef;
  --card:#fffaf2;
  --line:#e8dcc6;
  --green:#1f4d40;
  --green-dark:#163a30;
  --gold:#b8862f;
  --gold-light:#d9b26a;
  --red:#b8322a;
  --text:#2d2a24;
  --muted:#7b7266;
  --serif:"Noto Serif", Georgia, "Times New Roman", serif;
  --sans:"Be Vietnam Pro", "Segoe UI", Arial, sans-serif;
  --script:"Dancing Script", cursive;
  --radius:12px;
  --shadow:0 4px 18px rgba(120,90,40,.08);}
.vk-scope *{box-sizing:border-box;margin:0;padding:0}
.vk-scope{font-family:var(--sans);color:var(--text);font-size:14px;line-height:1.5}
.vk-scope a{color:inherit;text-decoration:none}
.vk-scope img{max-width:100%;display:block}
.vk-scope ul{list-style:none}
.vk-scope .container{max-width:1200px;margin:0 auto;padding:0 20px}
.vk-scope .img{background:linear-gradient(135deg,#d9c7a6,#a98b5d);display:flex;align-items:center;justify-content:center;font-size:34px;overflow:hidden;border-radius:8px}
.vk-scope .img.g1{background:linear-gradient(135deg,#c9d6b8,#6f8a5a)}
.vk-scope .img.g2{background:linear-gradient(135deg,#e8b48a,#9b3b22)}
.vk-scope .img.g3{background:linear-gradient(135deg,#f2d9c6,#c9967a)}
.vk-scope .img.g4{background:linear-gradient(135deg,#9fb8c9,#4c6a7d)}
.vk-scope .img.g5{background:linear-gradient(135deg,#3b3f5c,#c28b3a)}
.vk-scope .img.g6{background:linear-gradient(135deg,#efe3cf,#cdb38a)}
.vk-scope.header{background:var(--paper);border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.vk-scope.header .container{display:flex;align-items:center;gap:30px;height:72px}
.vk-scope .logo{display:flex;align-items:center;gap:10px}
.vk-scope .logo-icon{width:46px;height:46px;border-radius:50%;border:2px solid var(--gold);display:flex;align-items:center;justify-content:center;font-size:26px;background:#fff}
.vk-scope .logo-text b{font-family:var(--serif);color:var(--green);font-size:20px;letter-spacing:.5px;display:block;line-height:1.1}
.vk-scope .logo-text small{font-size:9px;color:var(--gold);letter-spacing:.5px}
.vk-scope .nav{display:flex;gap:22px;flex:1}
.vk-scope .nav a{font-family:var(--serif);font-size:14px;padding:24px 0;position:relative}
.vk-scope .nav a.active{color:var(--green);font-weight:600}
.vk-scope .nav a.active::after{content:"";position:absolute;left:0;right:0;bottom:16px;height:2px;background:var(--gold)}
.vk-scope .nav a:hover{color:var(--green)}
.vk-scope .search{display:flex;border:1px solid var(--line);border-radius:6px;overflow:hidden;background:#fff}
.vk-scope .search input{border:0;outline:0;padding:9px 12px;width:180px;font-family:inherit;font-size:13px;background:transparent}
.vk-scope .search button{border:0;background:var(--green);color:#fff;width:40px;cursor:pointer;font-size:15px}
.vk-scope .user-btn{width:34px;height:34px;border-radius:50%;border:1px solid var(--line);display:flex;align-items:center;justify-content:center;background:#fff}
.vk-scope .hero{position:relative;padding:30px 0 70px;
  background:
    radial-gradient(circle at 18% 30%,rgba(255,236,200,.9),transparent 30%),
    linear-gradient(180deg,#efe2c8 0%,#e3d3b4 45%,#bfc3b0 75%,#8fa08f 100%);
  overflow:hidden}
.vk-scope .hero::before{content:"";position:absolute;inset:auto 0 0 0;height:60%;
  background:
    radial-gradient(ellipse 30% 60% at 10% 100%,#4f6b5c 60%,transparent 61%),
    radial-gradient(ellipse 25% 75% at 30% 100%,#6d8676 60%,transparent 61%),
    radial-gradient(ellipse 35% 50% at 55% 100%,#87998a 60%,transparent 61%),
    radial-gradient(ellipse 30% 80% at 85% 100%,#2e5145 60%,transparent 61%);
  opacity:.85}
.vk-scope .hero .container{position:relative;display:grid;grid-template-columns:300px 190px 1fr;gap:24px;align-items:center}
.vk-scope .hero-quote{font-family:var(--script);font-size:30px;color:#3a3226;line-height:1.35;padding-left:80px}
.vk-scope .hero-quote .seal{display:inline-block;background:var(--red);color:#fff;font-size:11px;padding:4px 3px;margin-left:30px;font-family:var(--serif);writing-mode:vertical-rl}
.vk-scope .date-card{background:var(--card);border:2px solid var(--gold-light);outline:1px solid var(--gold-light);outline-offset:5px;border-radius:6px;text-align:center;padding:20px 14px;box-shadow:0 10px 30px rgba(0,0,0,.15)}
.vk-scope .date-card .dow{font-family:var(--serif);font-size:18px}
.vk-scope .date-card .day{font-family:var(--serif);font-size:72px;font-weight:700;color:var(--green);line-height:1}
.vk-scope .date-card .month{font-family:var(--serif);font-size:14px;margin-bottom:10px}
.vk-scope .date-card .lunar{font-family:var(--serif);font-size:13px;color:#4a4237}
.vk-scope .date-card .lunar small{display:block;font-size:11px;color:var(--muted)}
.vk-scope .btn-gold{display:inline-block;margin-top:14px;background:linear-gradient(180deg,#c99a45,#a77526);color:#fff;font-size:11px;font-weight:600;padding:8px 16px;border-radius:20px}
.vk-scope .today-card{background:rgba(255,250,242,.95);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}
.vk-scope .card-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:10px}
.vk-scope .card-head h3{font-family:var(--serif);font-size:14px;font-weight:600}
.vk-scope .pill-link{font-size:11px;color:var(--gold);border:1px solid var(--line);padding:3px 10px;border-radius:14px;background:#fff}
.vk-scope .info-row{display:grid;grid-template-columns:28px 110px 1fr;align-items:center;gap:8px;padding:9px 0;border-top:1px solid var(--line);font-size:12px}
.vk-scope .info-row .ic{width:24px;height:24px;border-radius:50%;background:#f3e6cc;display:flex;align-items:center;justify-content:center;font-size:12px}
.vk-scope .info-row b{font-weight:600}
.vk-scope .info-row span:last-child{color:#4a4237}
.vk-scope .cat-bar{position:relative;margin-top:-45px;z-index:5}
.vk-scope .cat-bar .inner{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);display:grid;grid-template-columns:repeat(6,1fr);padding:16px}
.vk-scope .cat{display:flex;align-items:center;gap:10px;padding:4px 12px;border-right:1px solid var(--line)}
.vk-scope .cat:last-child{border-right:0}
.vk-scope .cat .ic{width:48px;height:48px;flex:none;border-radius:50%;border:1px solid var(--gold-light);display:flex;align-items:center;justify-content:center;font-size:22px;background:#fdf3df}
.vk-scope .cat b{font-family:var(--serif);font-size:13px;font-weight:600;display:block}
.vk-scope .cat small{font-size:11px;color:var(--muted)}
.vk-scope .section{padding:34px 0 0}
.vk-scope .sec-head{display:flex;justify-content:space-between;align-items:flex-end;margin-bottom:16px}
.vk-scope .sec-head h2{font-family:var(--serif);font-size:24px;font-weight:600;letter-spacing:.5px;display:flex;align-items:center;gap:8px}
.vk-scope .sec-head h2::before{content:"";width:8px;height:8px;border-right:2px solid var(--gold);border-top:2px solid var(--gold);transform:rotate(45deg)}
.vk-scope .sec-head p{color:var(--muted);font-size:13px;margin-left:18px}
.vk-scope .see-all{font-size:12px;color:var(--gold)}
.vk-scope .featured{display:grid;grid-template-columns:1.25fr 1fr;gap:12px}
.vk-scope .feat-main{display:grid;grid-template-columns:1.1fr 1fr;background:var(--card);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}
.vk-scope .feat-main .img{border-radius:0;min-height:200px;font-size:60px}
.vk-scope .feat-main .body{padding:24px 18px;display:flex;flex-direction:column}
.vk-scope .tag{display:inline-block;font-size:9px;font-weight:600;padding:3px 8px;border-radius:3px;background:#fbe3dd;color:var(--red);align-self:flex-start}
.vk-scope .tag.solid{background:var(--red);color:#fff}
.vk-scope .tag.blue{background:#e1ecf0;color:#3c6a7d}
.vk-scope .feat-main h3{font-family:var(--serif);font-size:19px;line-height:1.4;margin:10px 0 8px}
.vk-scope .feat-main p{font-size:11px;color:var(--muted)}
.vk-scope .meta{display:flex;gap:14px;font-size:10px;color:var(--muted);margin-top:auto;align-items:center}
.vk-scope .go{margin-left:auto;width:26px;height:26px;border-radius:50%;background:var(--gold);color:#fff;display:flex;align-items:center;justify-content:center}
.vk-scope .feat-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.vk-scope .mini{display:grid;grid-template-columns:90px 1fr;gap:10px;background:var(--card);border-radius:10px;padding:6px;box-shadow:var(--shadow)}
.vk-scope .mini .img{height:92px}
.vk-scope .mini h4{font-family:var(--serif);font-size:12px;font-weight:500;margin:4px 0}
.vk-scope .mini .meta{margin-top:12px}
.vk-scope .tools{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);display:grid;grid-template-columns:repeat(10,1fr);padding:16px 6px}
.vk-scope .tool{text-align:center;padding:4px;border-right:1px solid var(--line)}
.vk-scope .tool:last-child{border-right:0}
.vk-scope .tool .ic{width:46px;height:46px;margin:0 auto 8px;border-radius:50%;background:#f6ecd8;display:flex;align-items:center;justify-content:center;font-size:22px}
.vk-scope .tool b{font-family:var(--serif);font-size:12px;font-weight:600;display:block}
.vk-scope .tool small{font-size:10px;color:var(--muted)}
.vk-scope .three{display:grid;grid-template-columns:330px 1fr 330px;gap:12px}
.vk-scope .box{background:var(--card);border-radius:var(--radius);box-shadow:var(--shadow);padding:16px}
.vk-scope .cal-head{display:flex;align-items:center;gap:8px;margin-bottom:10px}
.vk-scope .cal-head h3{font-family:var(--serif);font-size:16px;font-weight:600;flex:1}
.vk-scope .cal-nav button{width:26px;height:26px;border-radius:50%;border:1px solid var(--line);background:#fff;cursor:pointer}
.vk-scope .cal{display:grid;grid-template-columns:repeat(7,1fr);gap:2px;text-align:center;font-family:var(--serif)}
.vk-scope .cal .dh{font-size:11px;font-weight:600;padding:6px 0;border-bottom:1px solid var(--line)}
.vk-scope .cal .dh.red{color:var(--red)}
.vk-scope .cal .d{padding:7px 0;font-size:13px;position:relative;border-bottom:1px solid #f1e8d8}
.vk-scope .cal .d.out{color:#c4b8a5}
.vk-scope .cal .d.sun{color:var(--red)}
.vk-scope .cal .d.today span{background:var(--green);color:#fff;border-radius:50%;width:28px;height:28px;display:inline-flex;align-items:center;justify-content:center}
.vk-scope .cal .d.dot::after{content:"";position:absolute;top:4px;right:10px;width:4px;height:4px;border-radius:50%;background:var(--red)}
.vk-scope .cal .d.gdot::after{content:"";position:absolute;top:4px;right:10px;width:4px;height:4px;border-radius:50%;background:var(--gold)}
.vk-scope .detail h3{font-family:var(--serif);font-size:15px;font-weight:600}
.vk-scope .detail .sub{font-size:11px;color:var(--muted);margin-bottom:12px}
.vk-scope .detail-grid{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px}
.vk-scope .kv{font-family:var(--serif);font-size:12px}
.vk-scope .kv div{display:flex;padding:7px 0;border-bottom:1px solid var(--line)}
.vk-scope .kv div span:first-child{width:60px;color:var(--muted)}
.vk-scope .do-list{border:1px solid var(--line);border-radius:8px;padding:8px;font-size:11px}
.vk-scope .do-list h5{font-weight:500;font-size:11px;text-align:center;padding-bottom:6px;margin-bottom:4px;border-bottom:1px solid var(--line);color:var(--green)}
.vk-scope .do-list.bad h5{color:var(--red)}
.vk-scope .do-list li{padding:4px 0}
.vk-scope .do-list li::before{content:"✓";color:var(--green);margin-right:6px}
.vk-scope .do-list.bad li::before{content:"✕";color:var(--red)}
.vk-scope .btn-green{display:block;width:fit-content;margin:16px auto 0;background:var(--green);color:#fff;font-size:12px;font-weight:600;padding:10px 32px;border-radius:22px}
.vk-scope .zodiac{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;text-align:center}
.vk-scope .zodiac a{font-family:var(--serif);font-size:11px;padding:4px 0}
.vk-scope .zodiac a span{display:flex;width:50px;height:50px;margin:0 auto 2px;border-radius:50%;background:#f6ecd8;align-items:center;justify-content:center;font-size:28px}
.vk-scope .cols3{display:grid;grid-template-columns:repeat(3,1fr);gap:24px}
.vk-scope .col-head{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}
.vk-scope .col-head h3{font-family:var(--serif);font-size:17px;font-weight:600}
.vk-scope .col-head h3::before{content:"☯ ";color:var(--gold)}
.vk-scope .post-row{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}
.vk-scope .post-row .img{height:76px;font-size:26px}
.vk-scope .post-row p{font-family:var(--serif);font-size:11px;margin-top:6px;line-height:1.4}
.vk-scope .know{display:grid;grid-template-columns:repeat(6,1fr);gap:10px}
.vk-scope .know-card{background:var(--card);border-radius:10px;overflow:hidden;box-shadow:var(--shadow)}
.vk-scope .know-card .img{height:52px;border-radius:0;font-size:24px}
.vk-scope .know-card .b{display:flex;align-items:center;padding:8px 10px}
.vk-scope .know-card b{font-family:var(--serif);font-size:13px;font-weight:600;display:block}
.vk-scope .know-card small{font-size:10px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block;max-width:110px}
.vk-scope .know-card .go{background:transparent;border:1px solid var(--line);color:var(--muted);width:22px;height:22px;font-size:11px}
.vk-scope .bottom{display:grid;grid-template-columns:repeat(3,1fr);gap:24px;padding-bottom:40px}
.vk-scope .bottom h4{font-family:var(--serif);font-size:13px;font-weight:600;display:flex;justify-content:space-between;margin-bottom:10px}
.vk-scope .bottom h4 a{font-weight:400;font-size:10px;color:var(--gold)}
.vk-scope .news li{display:grid;grid-template-columns:52px 1fr;gap:8px;margin-bottom:8px}
.vk-scope .news .img{height:32px;font-size:16px;border-radius:4px}
.vk-scope .news p{font-size:11px;font-family:var(--serif)}
.vk-scope .news small{font-size:9px;color:var(--muted)}
.vk-scope .rank li{display:flex;align-items:center;gap:8px;padding:6px 0;border-bottom:1px solid var(--line);font-size:11px;font-family:var(--serif)}
.vk-scope .rank .n{width:18px;height:18px;border-radius:50%;background:var(--gold);color:#fff;font-size:10px;display:flex;align-items:center;justify-content:center;flex:none}
.vk-scope .rank .v{margin-left:auto;font-size:9px;color:var(--muted);white-space:nowrap}
.vk-scope .sub-form p{font-size:11px;color:var(--muted);margin-bottom:10px}
.vk-scope .sub-form form{display:flex;gap:8px}
.vk-scope .sub-form input{flex:1;border:1px solid var(--line);border-radius:4px;padding:9px;font-size:12px;background:#fff;font-family:inherit}
.vk-scope .sub-form button{background:var(--green);color:#fff;border:0;border-radius:4px;padding:0 18px;font-weight:600;font-size:12px;cursor:pointer}
.vk-scope .sub-form small{font-size:9px;color:var(--muted);display:block;margin-top:6px}
.vk-scope .socials{display:flex;gap:6px;justify-content:flex-end;margin-top:8px}
.vk-scope .socials a{width:22px;height:22px;border-radius:50%;background:var(--green);color:#fff;font-size:11px;display:flex;align-items:center;justify-content:center}
.vk-scope a:focus-visible,
.vk-scope button:focus-visible,
.vk-scope input:focus-visible{outline:2px solid var(--gold);outline-offset:2px}
@media (max-width:1024px){
.vk-scope .nav,
.vk-scope .search{display:none}
.vk-scope.header .container{justify-content:space-between}
.vk-scope .hero .container{grid-template-columns:1fr 200px}
.vk-scope .hero-quote{display:none}
.vk-scope .cat-bar .inner{grid-template-columns:repeat(3,1fr);row-gap:14px}
.vk-scope .featured,
.vk-scope .three{grid-template-columns:1fr}
.vk-scope .tools{grid-template-columns:repeat(5,1fr);row-gap:16px}
.vk-scope .cols3,
.vk-scope .bottom{grid-template-columns:1fr}
.vk-scope .know{grid-template-columns:repeat(3,1fr)}
}
@media (max-width:640px){
.vk-scope .hero .container{grid-template-columns:1fr}
.vk-scope .date-card{max-width:220px;margin:0 auto}
.vk-scope .cat-bar .inner{grid-template-columns:repeat(2,1fr)}
.vk-scope .feat-main{grid-template-columns:1fr}
.vk-scope .feat-grid{grid-template-columns:1fr}
.vk-scope .tools{grid-template-columns:repeat(3,1fr)}
.vk-scope .detail-grid{grid-template-columns:1fr}
.vk-scope .know{grid-template-columns:repeat(2,1fr)}
.vk-scope .sec-head{flex-direction:column;align-items:flex-start;gap:6px}
}

/* =========================================================
   PHẦN 2 – BỔ SUNG CHO WORDPRESS
   ========================================================= */
body.home{ background:#f7f1e6; }

/* nền vùng tìm kiếm khi dùng ngoài header (404, kết quả trống) */
.vk-scope.vk-search-wrap{ background:transparent; display:inline-block; }

.vk-scope .tag,.vk-scope .col-head h3{ text-transform:uppercase; }

/* tiêu đề trong vùng thiết kế: không lấy cỡ chữ/màu mặc định của Bootstrap */
.vk-scope h1,.vk-scope h2,.vk-scope h3,.vk-scope h4,.vk-scope h5,.vk-scope h6{
  font-family:var(--serif); color:inherit; line-height:inherit; font-weight:inherit; font-size:inherit; }
.vk-scope button{ font-family:inherit; }

/* logo thật thay cho biểu tượng ☯ */
.vk-scope .logo-img,
.vk-scope .logo .custom-logo{ height:46px; width:auto; display:block; }

/* ảnh bài viết thật bên trong khung .img */
.vk-scope .img img{ width:100%; height:100%; object-fit:cover; display:block; }
.vk-scope .feat-main > a,
.vk-scope .mini > a{ display:block; }
.vk-scope .feat-main > a .img{ height:100%; }
.vk-scope .mini > a .img{ height:92px; }
.vk-scope .feat-main h3 a:hover,
.vk-scope .mini h4 a:hover,
.vk-scope .post-row a:hover p,
.vk-scope .news a:hover p,
.vk-scope .rank a:hover{ color:var(--green); }
.vk-scope .feat-main p{ display:-webkit-box; -webkit-line-clamp:4; -webkit-box-orient:vertical; overflow:hidden; }
.vk-scope .mini h4{ display:-webkit-box; -webkit-line-clamp:3; -webkit-box-orient:vertical; overflow:hidden; }
.vk-scope .img{ transition:transform .35s ease; }
.vk-scope a:hover > .img{ transform:scale(1.03); }

/* header: menu dạng liên kết thuần + nút menu mobile */
.vk-scope .header-menu{ display:contents; }
.vk-scope .menu-toggle{ display:none; width:38px; height:38px; border:1px solid var(--line); border-radius:8px; background:#fff; font-size:18px; line-height:1; cursor:pointer; }
.vk-scope.header .container{ flex-wrap:nowrap; }
.vk-scope .nav{ flex-wrap:nowrap; }
.vk-scope .nav a{ white-space:nowrap; }
.vk-scope .search input::placeholder{ color:#a79c8b; }

/* lịch: liên kết ngày, nút tháng trước/sau, ngày đang chọn, chú thích */
.vk-scope .cal-nav{ display:flex; gap:4px; }
.vk-scope .cal-nav a{ width:26px; height:26px; border-radius:50%; border:1px solid var(--line); background:#fff; display:inline-flex; align-items:center; justify-content:center; }
.vk-scope .cal-nav a:hover{ background:var(--green); color:#fff; border-color:var(--green); }
.vk-scope .cal a.d{ display:block; color:inherit; transition:background .15s ease; }
.vk-scope .cal a.d:hover{ background:rgba(184,134,47,.12); }
.vk-scope .cal .d.sel span{ box-shadow:0 0 0 1.5px var(--gold); border-radius:50%; width:28px; height:28px; display:inline-flex; align-items:center; justify-content:center; }
.vk-scope .cal .d.today.sel span{ box-shadow:none; }
.vk-scope .cal-legend{ display:flex; gap:14px; margin-top:10px; font-size:10px; color:var(--muted); }
.vk-scope .cal-legend i{ display:inline-block; width:6px; height:6px; border-radius:50%; margin-right:5px; vertical-align:middle; }
.vk-scope .detail .do-list ul{ margin:0; }

/* biểu mẫu đăng ký */
.vk-scope .vk-hp{ position:absolute; left:-9999px; width:1px; height:1px; opacity:0; }
.vk-scope .sub-msg{ font-size:11px; margin-top:8px; padding:6px 10px; border-radius:4px; }
.vk-scope .sub-msg.ok{ background:#e4efe9; color:var(--green); }
.vk-scope .sub-msg.err{ background:#fbe3dd; color:var(--red); }
.vk-scope .socials a:hover{ background:var(--gold); }

/* hiệu ứng hover nhẹ */
.vk-scope .feat-main,
.vk-scope .mini,
.vk-scope .know-card,
.vk-scope .tool{ transition:transform .25s ease, box-shadow .25s ease; }
.vk-scope .feat-main:hover,
.vk-scope .mini:hover,
.vk-scope .know-card:hover{ transform:translateY(-3px); box-shadow:0 10px 24px rgba(120,90,40,.16); }
.vk-scope .tool:hover{ transform:translateY(-2px); }
.vk-scope .zodiac a span{ transition:transform .2s ease, background .2s ease; }
.vk-scope .zodiac a:hover span{ transform:scale(1.08); background:#efdcb3; }

/* ảnh banner tự chọn trong Customizer */
.vk-scope .hero.has-image{ background-size:cover; background-position:center; }
.vk-scope .hero.has-image::before{ display:none; }

/* vừa khít ở màn hình 1025–1200px */
@media (max-width:1200px){
  .vk-scope .nav{ gap:16px; }
  .vk-scope.header .container{ gap:20px; }
  .vk-scope .search input{ width:130px; }
  .vk-scope .logo-text small{ display:none; }
}

/* menu mobile */
@media (max-width:1100px){
  .vk-scope .nav,.vk-scope .search{ display:none; }
  .vk-scope .menu-toggle{ display:inline-flex; align-items:center; justify-content:center; margin-left:auto; }
  .vk-scope.header .container{ gap:10px; }
  .vk-scope.header .container{ justify-content:flex-start; }
  .vk-scope.header.open .header-menu{
    display:block; position:absolute; left:0; right:0; top:72px; background:var(--paper);
    border-bottom:1px solid var(--line); box-shadow:0 12px 24px rgba(120,90,40,.12); padding:6px 20px 18px; }
  .vk-scope.header.open .nav{ display:flex; flex-direction:column; gap:0; }
  .vk-scope.header.open .nav a{ padding:13px 0; border-bottom:1px solid var(--line); }
  .vk-scope.header.open .nav a.active::after{ display:none; }
  .vk-scope.header.open .vk-search-wrap{ display:block; }
  .vk-scope.header.open .search{ display:flex; margin-top:14px; }
  .vk-scope.header.open .search input{ flex:1; width:100%; }
  .vk-scope .logo-text small{ display:block; }
}
@media (max-width:640px){
  .vk-scope .logo-text small{ display:none; }
  .vk-scope .logo-text b{ font-size:16px; }
  .vk-scope .logo-img,
  .vk-scope .logo .custom-logo{ height:36px; }
  .vk-scope.header .container{ gap:8px; }
  .vk-scope .three .box{ padding:14px; }
  .vk-scope .cal .d{ padding:6px 0; }
}


/* header gọn vừa một hàng ở độ rộng 1100–1280px */
.vk-scope .logo{ flex-shrink:0; gap:8px; }
.vk-scope .logo-text b,
.vk-scope .logo-text small{ white-space:nowrap; }
.vk-scope .logo-img,
.vk-scope .logo .custom-logo{ height:42px; }
.vk-scope.header .container{ gap:20px; }
.vk-scope .nav{ gap:16px; flex:1; min-width:0; }
.vk-scope .nav a{ font-size:13.5px; }
.vk-scope .search{ flex-shrink:0; }
.vk-scope .search input{ width:140px; }
.vk-scope .user-btn{ flex-shrink:0; }
@media (max-width:1200px){
  .vk-scope .nav{ gap:12px; }
  .vk-scope .nav a{ font-size:13px; }
  .vk-scope .search input{ width:110px; }
  .vk-scope .logo-text small{ display:none; }
}

/* con dấu 福: cỡ cố định (vertical-rl làm ô co về 8px) */
.vk-scope .hero-quote .seal{
  writing-mode:horizontal-tb; display:inline-flex; align-items:center; justify-content:center;
  width:24px; height:28px; padding:0; font-size:14px; line-height:1; vertical-align:bottom; margin-left:34px; border-radius:2px; }

.vk-scope .date-card .lunar small{ text-wrap:balance; }
.vk-scope .see-all{ white-space:nowrap; }
.vk-scope .nw{ white-space:nowrap; }

@media (max-width:380px){
  .vk-scope .logo-text b{ font-size:13px; letter-spacing:0; }
  .vk-scope .logo-img,
  .vk-scope .logo .custom-logo{ height:32px; }
  .vk-scope .container{ padding:0 14px; }
}

@media (prefers-reduced-motion: reduce){
  .vk-scope *{ transition:none !important; }
  .vk-scope .feat-main:hover,.vk-scope .mini:hover,.vk-scope .know-card:hover,.vk-scope .tool:hover,
  .vk-scope a:hover > .img,.vk-scope .zodiac a:hover span{ transform:none !important; }
}
