/* ===== TRANG BẢNG GIÁ ===== */

/* Header thấp hơn trang hướng dẫn để bảng giá hiện ngay màn hình đầu */
.hero-order {
    height: 34vh;
    min-height: 280px;
    max-height: 380px;
}

.order {
    max-width: 1240px;
    margin: auto;
    padding: 60px 20px 40px;
}

.order h2 {
    color: var(--gold);
    line-height: 1.3;
}

.order strong {
    color: var(--gold);
}

.order a {
    color: var(--gold);
}

/* ===== THẺ GÓI ===== */
.plans {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 18px;
    align-items: stretch;
}

.plan {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 34px 22px 24px;
    background: #151515;
    border: 1px solid rgba(212, 175, 55, .25);
    border-radius: 12px;
    text-align: center;
    transition: .25s;
}

.plan:hover {
    transform: translateY(-6px);
    border-color: rgba(212, 175, 55, .7);
    box-shadow: 0 14px 30px rgba(0, 0, 0, .5);
}

.plan-featured {
    background: linear-gradient(180deg, #2a2311 0%, #161310 100%);
    border: 2px solid var(--gold);
    box-shadow: 0 0 30px rgba(212, 175, 55, .18);
}

.plan-lifetime {
    border-color: rgba(168, 85, 247, .45);
}

.plan-lifetime:hover {
    border-color: rgba(192, 132, 252, .9);
}

.plan-ribbon {
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    padding: 3px 16px;
    border-radius: 20px;
    background: linear-gradient(135deg, #b8962e, #ffd700);
    color: #000;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: 1px;
    white-space: nowrap;
}

.ribbon-lifetime {
    background: linear-gradient(135deg, #7c3aed, #c084fc);
    color: #fff;
}

.plan-name {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.plan-lifetime .plan-name {
    color: #d8b4fe;
}

.plan-price {
    font-family: "Segoe UI", Arial, sans-serif;
    font-size: 2.1rem;
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -.5px;
}

/* Chừa đủ chỗ cho nhãn "Tiết kiệm" để các thẻ thẳng hàng */
.plan-meta {
    min-height: 72px;
}

.plan-sub {
    margin-top: 6px;
    color: #aaa;
    font-size: .95rem;
}

.plan-saving {
    display: inline-block;
    align-self: center;
    margin-top: 10px;
    padding: 2px 12px;
    border-radius: 20px;
    background: rgba(34, 197, 94, .15);
    border: 1px solid rgba(34, 197, 94, .45);
    color: #4ade80;
    font-size: .85rem;
    font-weight: 700;
    white-space: nowrap;
}

.plan-features {
    list-style: none;
    margin: 22px 0 24px;
    padding-top: 18px;
    border-top: 1px dashed rgba(212, 175, 55, .25);
    text-align: left;
    flex: 1;
}

.plan-features li {
    position: relative;
    padding-left: 24px;
    margin-bottom: 8px;
    font-size: .95rem;
    line-height: 1.5;
}

.plan-features li::before {
    content: "✔";
    position: absolute;
    left: 0;
    color: var(--gold);
}

.plan-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

/* ===== NÚT ĐẶT HÀNG ===== */
.btn-order {
    display: block;
    padding: 11px 16px;
    border-radius: 8px;
    font-weight: 700;
    letter-spacing: .3px;
    text-align: center;
    text-decoration: none;
    white-space: nowrap;
    transition: .2s;
}

.order .btn-order-zalo {
    background: #0068ff;
    color: #fff;
}

.order .btn-order-zalo:hover {
    background: #2b82ff;
}

.order .btn-order-fb {
    background: transparent;
    border: 1px solid #1877f2;
    color: #8fb9ff;
}

.order .btn-order-fb:hover {
    background: #1877f2;
    color: #fff;
}

.plan-featured .btn-order-zalo {
    box-shadow: 0 6px 18px rgba(0, 104, 255, .35);
}

.plans-note {
    margin-top: 28px;
    text-align: center;
    color: #aaa;
    font-size: .95rem;
}

/* ===== QUY TRÌNH ===== */
.order-section {
    margin-top: 80px;
}

.order-section > h2 {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 30px;
}

.order-steps {
    list-style: none;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 18px;
    counter-reset: none;
}

.order-steps li {
    position: relative;
    padding: 26px 20px 20px;
    border: 1px solid rgba(212, 175, 55, .25);
    border-radius: 12px;
    background: #151515;
    text-align: center;
}

/* Mũi tên nối các bước */
.order-steps li:not(:last-child)::after {
    content: "➜";
    position: absolute;
    right: -15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.1rem;
    z-index: 1;
}

.step-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 46px;
    height: 46px;
    margin-bottom: 10px;
    border-radius: 50%;
    border: 2px solid var(--gold);
    color: var(--gold);
    font-size: 1.3rem;
    font-weight: 700;
}

.order-steps h3 {
    font-size: 1.2rem;
    margin-bottom: 6px;
}

.order-steps p {
    color: #ccc;
    font-size: .95rem;
}

.order-steps code {
    font-family: Consolas, monospace;
    font-size: .85rem;
    color: #fff;
    background: #000;
    padding: 1px 6px;
    border-radius: 4px;
    white-space: nowrap;
}

/* ===== FAQ ===== */
.faq {
    max-width: 860px;
    margin: auto;
}

.faq details {
    margin-bottom: 10px;
    border: 1px solid rgba(212, 175, 55, .25);
    border-radius: 10px;
    background: #151515;
    overflow: hidden;
}

.faq details[open] {
    border-color: rgba(212, 175, 55, .6);
}

.faq summary {
    position: relative;
    padding: 16px 50px 16px 20px;
    cursor: pointer;
    list-style: none;
    font-weight: 700;
    font-size: 1.05rem;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gold);
    font-size: 1.5rem;
    transition: .2s;
}

.faq details[open] summary::after {
    transform: translateY(-50%) rotate(45deg);
}

.faq details p {
    padding: 0 20px 18px;
    color: #ccc;
}

/* ===== LIÊN HỆ ===== */
.order-contact {
    margin-top: 80px;
    padding: 40px 24px;
    border: 1px solid rgba(212, 175, 55, .3);
    border-radius: 14px;
    background: radial-gradient(circle at 50% 0%, rgba(212, 175, 55, .12), transparent 70%), #121212;
    text-align: center;
}

.order-contact h2 {
    font-size: 1.9rem;
    margin-bottom: 10px;
}

.order-contact p {
    max-width: 640px;
    margin: 0 auto 22px;
    color: #ccc;
}

.contact-buttons {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 12px;
}

.contact-buttons .btn-order {
    min-width: 220px;
    padding: 13px 26px;
    font-size: 1.05rem;
}

/* ===== TOAST ===== */
.toast {
    position: fixed;
    left: 50%;
    bottom: 24px;
    z-index: 1000;
    max-width: calc(100% - 32px);
    padding: 12px 20px;
    border-radius: 10px;
    background: #1f2a1f;
    border: 1px solid rgba(34, 197, 94, .5);
    color: #bbf7d0;
    font-size: .95rem;
    box-shadow: 0 10px 30px rgba(0, 0, 0, .6);
    opacity: 0;
    pointer-events: none;
    transform: translate(-50%, 20px);
    transition: .3s;
}

.toast.show {
    opacity: 1;
    transform: translate(-50%, 0);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1150px) {
    .plans {
        grid-template-columns: repeat(3, 1fr);
        row-gap: 30px;
    }
}

@media (max-width: 900px) {
    .order-steps {
        grid-template-columns: repeat(2, 1fr);
    }

    .order-steps li::after {
        display: none;
    }
}

@media (max-width: 700px) {
    .plans {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin: auto;
    }

    .order-steps {
        grid-template-columns: 1fr;
    }

    .order-section > h2,
    .order-contact h2 {
        font-size: 1.6rem;
    }

    .contact-buttons .btn-order {
        width: 100%;
    }
}
