/* =========================================================================
   LoveGift — giao diện tối giản (10/2026)
   Nạp SAU app.css trong partials/header.php nên ghi đè được mọi trang dùng
   header chung: trang chủ, kho mẫu, landing, blog, bảng giá, voucher, đăng nhập,
   dashboard, tạo quà. Trang xem quà (gift_page.php) KHÔNG nạp file này.

   Nguyên tắc: nền trắng, MỘT màu nhấn hồng, chữ đen, viền mảnh thay cho bóng đổ,
   bỏ gradient/glow/hiệu ứng nền. Tên class giữ nguyên để không phải sửa logic.
   Muốn quay lại giao diện cũ: bỏ dòng nạp minimal.css trong header.php.
   ========================================================================= */

:root {
    --rose: #d6416c;          /* trắng trên nền này đạt tương phản ~4.6:1 */
    --rose-deep: #b8325a;
    --pink: #d6416c;
    --pink-soft: #fdf0f4;
    --lilac: #f0b7c9;
    --purple: #d6416c;        /* trước là tím; gom về một màu nhấn */
    --purple-deep: #b8325a;
    --purple-soft: #fdf0f4;
    --purple-light: #ece8ee;
    --gold: #b7862f;
    --gold-soft: #fbf6ea;

    --ink: #1d1a22;
    --ink-soft: #3d3845;
    --muted: #6b6474;
    --line: #ece8ee;
    --line-strong: #ddd6e0;
    --bg: #ffffff;
    --surface: #faf8f9;
    --card: #ffffff;

    --radius: 14px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-xs: none;
    --shadow: 0 1px 2px rgba(29, 26, 34, .04);
    --shadow-lg: 0 8px 24px -12px rgba(29, 26, 34, .14);
    --shadow-xl: 0 12px 32px -14px rgba(29, 26, 34, .18);
    --glow-rose: none;
    --glow-lilac: none;

    --grad-brand: linear-gradient(var(--rose), var(--rose));
    --grad-soft: var(--surface);
    --font-display: 'Be Vietnam Pro', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
}

body { background: #fff; line-height: 1.6; }
body::before { display: none; }
::selection { background: rgba(214, 65, 108, .16); }
a { color: var(--rose); }

/* ---------- Chữ ---------- */
h1, h2, h3, h4 { font-family: var(--font-display); letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); letter-spacing: -.03em; line-height: 1.15; }
h2 { font-size: clamp(1.5rem, 3vw, 2rem); }
.serif { font-family: inherit; font-style: normal; font-weight: inherit; letter-spacing: inherit; }
.grad-text { background: none; -webkit-text-fill-color: currentColor; color: var(--rose); }
.hero h1 span, .hero h1 em { color: inherit; background: none; -webkit-text-fill-color: currentColor; }

.eyebrow {
    background: none; border: 0; box-shadow: none; padding: 0; margin-bottom: 10px;
    backdrop-filter: none; -webkit-backdrop-filter: none;
    color: var(--rose); text-transform: uppercase; letter-spacing: .08em; font-size: .74rem; font-weight: 700;
}
.eyebrow .dot { display: none; }

.section { padding: 72px 0; }
.section-sm { padding: 40px 0; }
.section-head { margin-bottom: 36px; }
.section-head p { font-size: 1rem; }
.section-alt { background: var(--surface); }

/* ---------- Nút ---------- */
.btn {
    border-radius: 12px !important; box-shadow: none !important;
    font-weight: 700; letter-spacing: 0;
    transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { transform: none; }
.btn-primary { background: var(--rose) !important; color: #fff !important; }
.btn-primary::after { display: none; }
.btn-primary:hover { background: var(--rose-deep) !important; }
.btn-ghost {
    background: #fff; border: 1px solid var(--line-strong); color: var(--ink);
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
.btn-ghost:hover { border-color: var(--ink); color: var(--ink); }
.btn-soft { background: var(--pink-soft); color: var(--rose-deep); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 16px; }
.btn:focus-visible { outline: 3px solid rgba(214, 65, 108, .35); }

/* ---------- Header ---------- */
.site-header {
    background: rgba(255, 255, 255, .96);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.site-header .inner { width: min(1180px, calc(100% - 32px)); height: 64px; gap: 16px; }
.logo { font-size: 1.2rem; font-weight: 800; letter-spacing: -.03em; color: var(--ink); }
.logo-mark { width: 32px; height: 32px; }
.nav { gap: 2px; }
.nav a { padding: 8px 12px; border-radius: 10px; color: var(--ink-soft); font-weight: 600; font-size: .9rem; }
.nav a:hover { background: var(--surface); color: var(--ink); }
.nav a.is-active { background: none; color: var(--rose); }
.nav-pill, .nav-pill-gold, .nav-pill-rose, .nav-pill-lilac {
    background: none; border: 0; color: var(--ink-soft); font-weight: 600; font-size: .9rem;
    padding: 8px 12px; border-radius: 10px; box-shadow: none;
}
.nav-pill:hover { transform: none; background: var(--surface); box-shadow: none; }
.nav-pill .badge-count { background: var(--rose); }
.nav-avatar { background: var(--rose); }
.nav .btn { margin-left: 6px; }
.lang-switcher-btn { border-color: var(--line) !important; font-weight: 600 !important; }
.head-pop { border-radius: 14px; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }

@media (max-width: 980px) {
    .nav { top: 64px; background: #fff; backdrop-filter: none; -webkit-backdrop-filter: none; box-shadow: var(--shadow-lg); }
    .nav a, .nav .nav-pill { padding: 12px 14px; }
}

/* ---------- Thẻ ---------- */
.card { border-radius: var(--radius-lg); box-shadow: none; border: 1px solid var(--line); }
.tpl-card, .landing-page-container .tpl-card { border-radius: var(--radius-lg) !important; }
.tpl-card::after { display: none; }
.tpl-card:hover { transform: none; box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.tpl-thumb::after { display: none; }
.tpl-thumb .emoji { animation: none; filter: none; }
.tpl-card:hover .tpl-cover svg, .tpl-card:hover .tpl-cover-img { transform: none; }
.tpl-card h3 { font-size: 1rem; font-weight: 700; }
.tag { border-radius: 8px; font-weight: 600; }

/* ---------- Bộ lọc ---------- */
.filters a, .tpl-filter-pill {
    background: #fff; border: 1px solid var(--line-strong); border-radius: 999px;
    color: var(--ink-soft); font-weight: 600; box-shadow: none;
    backdrop-filter: none; -webkit-backdrop-filter: none;
}
.filters a:hover, .tpl-filter-pill:hover { transform: none; border-color: var(--ink); color: var(--ink); }
.filters a.is-active, .tpl-filter-pill.active {
    background: var(--ink); border-color: var(--ink); color: #fff; box-shadow: none;
}

/* ---------- Form ---------- */
.input, .textarea, .select { border-radius: 12px; border: 1px solid var(--line-strong); box-shadow: none; }
.input:focus, .textarea:focus, .select:focus { border-color: var(--rose); box-shadow: 0 0 0 3px rgba(214, 65, 108, .12); }

/* ---------- Các bước & FAQ ---------- */
.step-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    box-shadow: none; padding: 24px;
}
.step-card::before { display: none; }
.step-card:hover { transform: none; box-shadow: none; }
.step-index {
    position: static; display: inline-grid; place-items: center;
    width: 32px; height: 32px; border-radius: 10px; margin-bottom: 14px;
    background: var(--pink-soft); color: var(--rose);
    font-family: inherit; font-style: normal; font-size: .9rem; font-weight: 800;
}
.step-card h3 { font-size: 1.05rem; }
.step-num { background: var(--pink-soft); color: var(--rose); box-shadow: none; border-radius: 10px; }
.step-num::after { display: none; }

.faq-item { border-radius: 12px; box-shadow: none; border: 1px solid var(--line); background: #fff; }
.faq-item[open] { box-shadow: none; border-color: var(--line-strong); }
.faq-item summary::after { background: var(--surface); color: var(--ink); }
.faq-item[open] summary::after { background: var(--ink); color: #fff; }

/* ---------- Khối tối, bảng giá ---------- */
.section-dark { background: var(--ink); }
.section-dark::before { display: none; }
.price-card { box-shadow: none; border: 1px solid var(--line); border-radius: var(--radius-lg); }
.price-card:hover { transform: none; box-shadow: var(--shadow-lg); }

/* ---------- Landing ---------- */
.landing-hero { background: none !important; padding: 48px 0 24px !important; }
.landing-hero h1 { font-weight: 800 !important; }
.landing-content { line-height: 1.75; }

/* ---------- Footer ---------- */
.site-footer { background: var(--surface); border-top: 1px solid var(--line); }
.site-footer::before { display: none; }
.footer-social-btn { box-shadow: none; }
.support-toggle-btn { background: var(--ink) !important; box-shadow: var(--shadow-lg) !important; }

/* Hiệu ứng nền (cánh hoa, sao băng) đã tắt ở header; chặn thêm nếu trang nào tự gắn. */
.gfx-petal, .gfx-meteor, .gfx-spark { display: none !important; }

@media (prefers-reduced-motion: reduce) {
    * { transition: none !important; animation: none !important; }
}

/* Đánh giá */
.review-card { box-shadow: none; border: 1px solid var(--line); }
.review-card:hover { transform: none; box-shadow: var(--shadow-lg); }
.review-card .quote { font-family: inherit; font-style: normal; }
.review-card .tpl-chip { background: var(--surface); }

/* Dải theo mùa & "đã tạo hôm nay" — phẳng, một màu */
.season-main { background: var(--pink-soft) !important; border: 1px solid #f6d3de !important; box-shadow: none !important; border-radius: 12px !important; }
.season-main:hover { transform: none !important; border-color: var(--rose) !important; }
.season-emoji { font-size: 1.5rem !important; }
.social-proof-bar { background: #fff !important; border: 1px solid var(--line) !important; box-shadow: none !important; color: var(--ink-soft) !important; font-size: .85rem !important; }
.social-proof-bar b { color: var(--rose) !important; }

/* Kho mẫu (templates.php) */
.search-bar-wrap > div { box-shadow: none !important; border: 1px solid var(--line-strong) !important; border-radius: 14px !important; }
.search-bar-wrap .btn { border-radius: 10px !important; }
.tpl-type-row { display: flex; justify-content: center; gap: 4px; margin-top: 12px; font-size: .88rem; }
.tpl-type-row a { padding: 4px 10px; border-radius: 8px; color: var(--muted); font-weight: 600; text-decoration: none; }
.tpl-type-row a:hover { color: var(--ink); }
.tpl-type-row a.active { color: var(--ink); background: var(--surface); }
.tpl-rating-stars { background: none !important; border: 0 !important; padding: 0 !important; }
.tpl-card .desc { display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.tpl-card .tpl-actions { margin-top: auto; }
@media (max-width: 600px) {
    .tpl-filter-row { flex-wrap: nowrap !important; overflow-x: auto; justify-content: flex-start !important; padding-bottom: 4px; scrollbar-width: none; }
    .tpl-filter-pill { flex: none; }
}

/* Đăng nhập / đăng ký / quên mật khẩu (auth.css) */
.auth-sidebar { background: var(--ink) !important; }
.auth-sidebar::before, .auth-sidebar::after { display: none !important; }
.auth-feature-card { background: rgba(255, 255, 255, .06) !important; border-color: rgba(255, 255, 255, .1) !important; box-shadow: none !important; }
.auth-feature-icon, .auth-mobile-logo { background: var(--rose) !important; box-shadow: none !important; }
.auth-tabs { background: var(--surface) !important; }
.auth-tab-btn.active, .auth-tab-btn.is-active { background: #fff !important; color: var(--ink) !important; box-shadow: 0 1px 2px rgba(29, 26, 34, .08) !important; }
.auth-submit-btn { background: var(--rose) !important; border-radius: 12px !important; box-shadow: none !important; }
.auth-submit-btn:hover { background: var(--rose-deep) !important; transform: none !important; }
.auth-input-wrapper input { border-radius: 12px !important; }

/* Dashboard: bỏ gradient tím, dùng màu nhấn chung */
:root { --dash-primary-grad: var(--rose); }
.dash-nav-item.active { background: var(--rose) !important; box-shadow: none !important; }
.dash-filter-pill.active { background: var(--ink) !important; border-color: var(--ink) !important; color: #fff !important; box-shadow: none !important; }
.dash-stat-card { box-shadow: none !important; border: 1px solid var(--line) !important; }

/* =========================================================================
   ĐIỆN THOẠI (≤ 600px) — sửa bố cục từng trang (10/2026)
   ========================================================================= */
@media (max-width: 600px) {
    .container, .container-narrow { width: calc(100% - 32px); }
    .section { padding: 48px 0; }
    .section-sm { padding: 28px 0; }
    .section-head { margin-bottom: 24px; }
    h1 { font-size: 1.9rem; }

    /* Nút hỗ trợ nổi: nhỏ lại, sát góc, đỡ che nội dung */
    .floating-support { right: 14px !important; bottom: 14px !important; }
    .support-toggle-btn { width: 46px !important; height: 46px !important; }
    .support-tooltip { display: none !important; }

    /* Lưới mẫu quà (kho mẫu, landing, bảng giá): 2 cột thẻ gọn.
       Chỉ giữ ảnh + giá + tên + nút — mô tả, nhãn dịp, sao đánh giá ẩn đi. */
    .tpl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; gap: 12px !important; }
    .tpl-grid .tpl-card { border-radius: 14px !important; }
    .tpl-grid .tpl-thumb { aspect-ratio: 4 / 3 !important; }
    .tpl-grid .tpl-thumb > div[style*="absolute"] { top: 6px !important; right: 6px !important; padding: 2px 8px !important; font-size: .72rem !important; background: rgba(255, 255, 255, .94) !important; color: var(--ink) !important; box-shadow: none !important; border-radius: 8px !important; }
    .tpl-grid .card-body { padding: 10px 10px 12px !important; gap: 8px !important; display: flex; flex-direction: column; flex: 1; }
    .tpl-grid .card-body > div:first-child:not(.tpl-actions),
    .tpl-grid .tpl-meta, .tpl-grid .desc, .tpl-grid .card-body p.muted, .tpl-grid .tag { display: none !important; }
    .tpl-grid h3 { font-size: .86rem !important; line-height: 1.35 !important; margin: 0 !important; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .tpl-grid .tpl-actions { flex-direction: column; gap: 6px !important; margin-top: auto; }
    .tpl-grid .btn { width: 100%; padding: 8px 10px !important; font-size: .82rem !important; white-space: normal; }
    .tpl-grid .tpl-card > div[style*="padding:0 20px"] { padding: 0 10px 12px !important; }

    /* Trang tạo quà: tiêu đề một dòng riêng, nút xem thử + giá xuống dưới */
    .create-head { flex-direction: column; align-items: flex-start !important; gap: 12px; }
    .create-head h1 { font-size: 1.45rem !important; line-height: 1.3; }
    .create-head-actions { width: 100%; flex-wrap: wrap; }
    .create-head-actions .btn { flex: 1 1 auto; }

    /* Bảng (bảng giá, so sánh, lịch sử voucher): vừa màn hình thay vì tràn ngang */
    table.table { min-width: 0; font-size: .82rem; }
    table.table th, table.table td { padding: 10px 8px; }
    table.table th { font-size: .7rem; letter-spacing: .02em; }
    .table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }

    /* Voucher: thẻ nhiệm vụ xếp dọc, nút không bị cắt chữ */
    .voucher-task { padding: 18px !important; }
    .vt-head { flex-wrap: wrap; gap: 8px; }
    .vt-progress { flex-direction: column; align-items: stretch !important; gap: 10px; }
    .vt-progress .btn, .voucher-task .btn { width: 100%; white-space: normal; }

    /* Dashboard: thống kê 2×2 thay vì 4 ô dọc */
    .dash-stats-grid { grid-template-columns: 1fr 1fr !important; gap: 10px !important; }
    .dash-stat-card { padding: 14px !important; }

    /* Landing: hero gọn hơn */
    .landing-hero { padding: 32px 0 16px !important; }
    .landing-hero h1 { font-size: 1.7rem !important; }
    .landing-hero .btn-lg { width: 100%; padding: 13px 18px !important; }
}
