.packages-page {
    background: linear-gradient(180deg, #f8f9fb 0%, #ffffff 45%, #f3f4f6 100%);
}

.packages-intro {
    max-width: 680px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.packages-intro h2 {
    font-size: 1.35rem;
    font-weight: 800;
    color: #2c3e50;
    margin-bottom: .75rem;
}

.packages-intro p {
    color: #6c757d;
    margin: 0;
    line-height: 1.9;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

.package-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid #eceff3;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(44, 62, 80, 0.06);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
    min-height: 100%;
}

.package-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 18px 40px rgba(44, 62, 80, 0.12);
    border-color: #d8c4a8;
}

.package-card-header {
    padding: 1.5rem 1.5rem 1rem;
    background: linear-gradient(135deg, #2c3e50 0%, #34495e 100%);
    color: #fff;
    position: relative;
}

.package-card-header::after {
    content: "";
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at top right, rgba(182, 157, 116, 0.25), transparent 55%);
    pointer-events: none;
}

.package-card-badge {
    display: inline-block;
    background: #e74c3c;
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .25rem .65rem;
    border-radius: 999px;
    margin-bottom: .75rem;
    position: relative;
    z-index: 1;
}

.package-card-title {
    font-size: 1.15rem;
    font-weight: 800;
    margin: 0;
    line-height: 1.6;
    position: relative;
    z-index: 1;
    color: white;
}

.package-card-body {
    padding: 1.25rem 1.5rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.package-price-box {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: .5rem .75rem;
    margin-bottom: 1rem;
    padding-bottom: 1rem;
    border-bottom: 1px dashed #e9ecef;
}

.package-price-current {
    font-size: 1.35rem;
    font-weight: 800;
    color: #b69d74;
}

.package-price-old {
    font-size: .95rem;
    color: #adb5bd;
    text-decoration: line-through;
}

.package-price-label {
    display: block;
    width: 100%;
    font-size: .8rem;
    color: #6c757d;
}

.package-features-wrap {
    margin-bottom: 1.25rem;
    flex: 1;
    min-height: 0;
}

.package-features-scroll {
    max-height: 11.5rem;
    overflow-y: auto;
    padding-left: .25rem;
    margin-left: -.25rem;
    scrollbar-width: thin;
    scrollbar-color: #b69d74 #f1f3f5;
}

.package-features-scroll::-webkit-scrollbar {
    width: 6px;
}

.package-features-scroll::-webkit-scrollbar-track {
    background: #f1f3f5;
    border-radius: 999px;
}

.package-features-scroll::-webkit-scrollbar-thumb {
    background: #b69d74;
    border-radius: 999px;
}

.package-features {
    list-style: none;
    margin: 0;
    padding: 0;
}

.package-features li {
    display: flex;
    align-items: flex-start;
    gap: .55rem;
    margin-bottom: .75rem;
    color: #495057;
    font-size: .92rem;
    line-height: 1.7;
}

.package-features li:last-child {
    margin-bottom: 0;
}

.package-features li i {
    color: #b69d74;
    margin-top: .25rem;
    flex-shrink: 0;
}

.package-feature-content {
    display: flex;
    flex-direction: column;
    gap: .15rem;
}

.package-feature-content strong {
    color: #2c3e50;
    font-size: .9rem;
    font-weight: 700;
}

.package-feature-content span {
    color: #6c757d;
    font-size: .82rem;
    line-height: 1.65;
}

.package-no-features {
    color: #adb5bd;
    font-size: .88rem;
    margin: 0 0 1.25rem;
}

.package-card-purchased {
    display: block;
    width: 100%;
    text-align: center;
    padding: .85rem 1rem;
    border-radius: 12px;
    background: #e8f8ef;
    color: #1e6b3a;
    font-weight: 700;
}

.package-card-footer {
    margin-top: auto;
}

.package-card-btn {
    display: block;
    width: 100%;
    text-align: center;
    padding: .85rem 1rem;
    border-radius: 12px;
    background: linear-gradient(135deg, #b69d74 0%, #9a7f5a 100%);
    color: #fff !important;
    font-weight: 700;
    text-decoration: none !important;
    transition: opacity .2s ease, transform .2s ease;
    box-shadow: 0 8px 20px rgba(182, 157, 116, 0.28);
}

.package-card-btn:hover {
    opacity: .95;
    transform: translateY(-1px);
    color: #fff;
}

.packages-empty {
    max-width: 520px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 1.5rem;
    background: #fff;
    border-radius: 20px;
    border: 1px dashed #d8dee4;
    color: #6c757d;
}

.packages-empty i {
    font-size: 2.5rem;
    color: #b69d74;
    margin-bottom: 1rem;
    display: block;
}

@media (max-width: 575px) {
    .packages-grid {
        grid-template-columns: 1fr;
    }
}
