/* ==========================================
   PLANES · PREMIUM UI
========================================== */
.plan-search-group,
.plan-search-box {
    position: relative;
}

.plan-student-suggestions {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 190;
    max-height: 280px;
    overflow-y: auto;
    background: rgba(14,14,14,.985);
    border: 1px solid #39352e;
    box-shadow: 0 20px 52px rgba(0,0,0,.56);
    backdrop-filter: blur(12px);
}

.plan-student-suggestion-item {
    width: 100%;
    min-height: 54px;
    padding: 10px 13px;
    display: block;
    color: var(--white);
    background: transparent;
    border: 0;
    border-bottom: 1px solid #242424;
    cursor: pointer;
    text-align: left;
    transition: background 160ms ease, box-shadow 160ms ease, padding 160ms ease;
}

.plan-student-suggestion-item:last-child {
    border-bottom: 0;
}

.plan-student-suggestion-item:hover,
.plan-student-suggestion-item.is-active {
    padding-left: 19px;
    background: linear-gradient(90deg, rgba(221,185,120,.075), transparent 70%);
    box-shadow: inset 2px 0 0 var(--gold);
}

.plan-suggestion-name {
    display: block;
    margin-bottom: 5px;
    font-size: 12px;
    font-weight: 800;
}

.plan-suggestion-meta,
.plan-suggestion-empty {
    display: block;
    color: #85827b;
    font-size: 10px;
    line-height: 1.45;
}

.plan-suggestion-empty {
    padding: 16px;
}

.plans-search-button {
    width: auto;
    min-width: 168px;
    margin-top: 0;
}

.plan-student-summary {
    margin-top: 18px;
}

.plans-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin-top: 10px;
}

.plan-management-card {
    position: relative;
    min-height: 205px;
    padding: 20px;
    overflow: hidden;
    background:
        linear-gradient(145deg, rgba(221,185,120,.026), transparent 35%),
        #0e0e0e;
    border: 1px solid #282828;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.015), var(--shadow-md);
}

.plan-management-card::before {
    content: "";
    position: absolute;
    top: -1px;
    left: -1px;
    width: 62px;
    height: 1px;
    background: linear-gradient(90deg, var(--gold-dark), transparent);
}

.plan-management-card h2 {
    margin: 7px 0 9px;
    font-size: 21px;
    font-weight: 820;
    letter-spacing: -.2px;
}

.plan-management-card > p:not(.section-label) {
    margin-top: 5px;
    color: #908d85;
    font-size: 10px;
    line-height: 1.55;
}

.plan-management-card .gold-button {
    margin-top: 16px;
}

.plans-cancel-button {
    width: auto;
    margin-top: 18px;
}

.plan-rule-note,
#planActionMessage,
#plansMessage,
#planCancelMessage {
    min-height: 17px;
    margin-top: 9px;
    color: var(--gold);
    font-size: 10px;
    line-height: 1.5;
}

#planMembershipHistory {
    overflow: hidden;
    background: #0d0d0d;
    border: 1px solid #252525;
}

.plan-history-row {
    position: relative;
    padding: 10px 13px;
    border-bottom: 1px solid #232323;
}

.plan-history-row:last-child {
    border-bottom: 0;
}

.plan-history-row strong,
.plan-history-row span {
    display: block;
}

.plan-history-row strong {
    margin-bottom: 5px;
    color: #e1ded6;
    font-size: 11px;
    font-weight: 800;
}

.plan-history-row span {
    color: #86837c;
    font-size: 10px;
    line-height: 1.5;
}

@media (max-width: 900px) {
    .plans-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 750px) {
    .plans-search-button,
    .plans-cancel-button {
        width: 100%;
    }

    .plan-student-suggestions {
        max-height: 290px;
    }

    .plan-management-card {
        padding: 22px 18px;
    }
}
