﻿.member-panel {
    min-height: 560px;
    padding: 44px 0 72px;
    background: #f5f7fa;
}

.panel-welcome,
.panel-section-heading {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 20px;
}

.panel-welcome {
    margin-bottom: 30px;
    padding: 28px 32px;
    border-radius: 16px;
    background: linear-gradient(115deg, #123b66, #245985);
    color: #fff;
    box-shadow: 0 14px 34px rgba(18, 59, 102, .16);
}

.panel-welcome .eyebrow {
    margin-bottom: 7px;
    color: #ffd28f;
}

.panel-welcome h1 {
    margin: 0 0 7px;
    color: #fff;
    font-size: clamp(25px, 3vw, 34px);
    font-weight: 800;
    letter-spacing: -.035em;
}

.panel-welcome p {
    margin: 0;
    color: rgba(255, 255, 255, .78);
    font-size: 14px;
}

.panel-profile-link {
    display: inline-flex;
    min-height: 40px;
    align-items: center;
    gap: 8px;
    padding: 0 13px;
    border: 1px solid rgba(255, 255, 255, .28);
    border-radius: 8px;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    white-space: nowrap;
}

.panel-profile-link:hover {
    border-color: #fff;
    color: #fff;
}

.panel-section-heading {
    margin-bottom: 15px;
}

.panel-section-heading .eyebrow {
    margin-bottom: 4px;
}

.panel-section-heading h2 {
    margin: 0;
    color: var(--portal-ink);
    font-size: 23px;
    font-weight: 800;
    letter-spacing: -.025em;
}

.panel-limits,
.panel-create,
.panel-listings {
    margin-top: 30px;
}

.panel-upgrade {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 20px;
    padding: 17px 20px;
    border: 1px solid #d9e7f1;
    border-radius: 12px;
    background: linear-gradient(105deg, #edf6fc, #f7fbfe);
}

.panel-upgrade__icon {
    display: grid;
    flex: 0 0 42px;
    width: 42px;
    height: 42px;
    place-items: center;
    border-radius: 11px;
    background: #fff;
    color: #2e6e9c;
    font-size: 19px;
    box-shadow: 0 3px 12px rgba(20, 65, 98, .08);
}

.panel-upgrade__copy {
    display: grid;
    flex: 1;
    gap: 4px;
}

.panel-upgrade__copy strong {
    color: #1c4260;
    font-size: 14px;
}

.panel-upgrade__copy span {
    color: #647b8d;
    font-size: 12px;
}

.panel-upgrade__actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: 8px;
}

.panel-upgrade__actions a {
    display: inline-flex;
    min-height: 37px;
    align-items: center;
    justify-content: center;
    gap: 7px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.panel-upgrade__whatsapp {
    background: #198754;
    color: #fff;
}

.panel-upgrade__whatsapp:hover { background: #157347; color: #fff; }

.panel-upgrade__phone {
    border: 1px solid #cbdbe7;
    background: #fff;
    color: #285a7c;
}

.panel-upgrade__phone:hover { border-color: #9db9ce; background: #f9fcfe; color: #1f4c6b; }

.panel-limit-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;
}

.panel-limit-card {
    display: flex;
    min-height: 106px;
    align-items: center;
    gap: 14px;
    padding: 18px;
    border: 1px solid var(--portal-line);
    border-radius: 12px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(20, 45, 70, .035);
}

.panel-limit-card__icon,
.panel-create-card__icon {
    display: grid;
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    place-items: center;
    border-radius: 12px;
    background: #edf4fb;
    color: var(--portal-blue);
    font-size: 20px;
}

.panel-limit-card__icon--orange { background: #fff4e4; color: #bd7e23; }
.panel-limit-card__icon--green { background: #eaf6ef; color: #37865c; }
.panel-limit-card__icon--purple { background: #f2effb; color: #7561a8; }

.panel-limit-card > div {
    display: grid;
    gap: 4px;
}

.panel-limit-card span:not(.panel-limit-card__icon) {
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1.45;
}

.panel-limit-card strong {
    color: var(--portal-ink);
    font-size: 23px;
    line-height: 1;
}

.panel-create-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 13px;
}

.panel-create-card {
    display: flex;
    min-height: 90px;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1px solid var(--portal-line);
    border-radius: 12px;
    background: #fff;
    transition: border-color .18s ease, transform .18s ease, box-shadow .18s ease;
}

.panel-create-card:hover {
    transform: translateY(-2px);
    border-color: #bfd0e1;
    box-shadow: 0 10px 24px rgba(20, 45, 70, .08);
}

.panel-create-card__icon {
    width: 48px;
    height: 48px;
    background: #edf4fb;
}

.panel-create-card > span:nth-child(2) {
    display: grid;
    flex: 1;
    gap: 5px;
}

.panel-create-card strong {
    color: var(--portal-ink);
    font-size: 15px;
}

.panel-create-card small {
    color: var(--portal-muted);
    font-size: 12px;
}

.panel-create-card__arrow {
    color: #9aa8b7;
    font-size: 16px;
}

.panel-list-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 14px;
}

.panel-business-card { margin-bottom: 14px; }

.panel-business-list { margin: 12px 0 0; padding: 0; list-style: none; }

.panel-business {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 12px 0;
    border-top: 1px solid var(--portal-line);
}

.panel-business--inactive { opacity: .7; }
.panel-business__info { display: grid; gap: 2px; }
.panel-business__info small { color: var(--portal-muted); }
.panel-business__status { font-size: 11px; color: var(--portal-muted); }
.panel-business__actions { display: flex; flex-wrap: wrap; gap: 6px; }
.panel-business__actions form { margin: 0; }

.panel-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 32px;
    padding: 0 10px;
    border: 1px solid var(--portal-line);
    border-radius: 8px;
    background: #fff;
    color: var(--portal-ink);
    font-size: 12px;
    text-decoration: none;
    cursor: pointer;
}

.panel-btn:hover { border-color: var(--portal-blue); }
.panel-btn--danger { border-color: #eed1ce; color: #a63f37; }
.panel-btn--success { border-color: #b3dcc3; color: #198754; }
.panel-btn:disabled { opacity: .6; cursor: wait; }

.panel-list-card {
    min-height: 150px;
    padding: 18px;
    border: 1px solid var(--portal-line);
    border-radius: 12px;
    background: #fff;
}

.panel-list-card__heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
}

.panel-list-card h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: var(--portal-ink);
    font-size: 15px;
    font-weight: 800;
}

.panel-list-card h3 .bi {
    color: var(--portal-blue);
}

.panel-list-card__heading > a {
    display: grid;
    width: 32px;
    height: 32px;
    place-items: center;
    border-radius: 8px;
    background: #edf4fb;
    color: var(--portal-blue);
}

.panel-list-card p {
    margin: 15px 0 0;
    color: var(--portal-muted);
    font-size: 12px;
    line-height: 1.6;
}

.panel-auth-notice {
    width: min(100%, 620px);
    margin: 52px auto;
    padding: 40px;
    border: 1px solid var(--portal-line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--portal-shadow);
    text-align: center;
}

.panel-auth-notice__icon {
    display: inline-grid;
    width: 58px;
    height: 58px;
    place-items: center;
    border-radius: 50%;
    background: #edf4fb;
    color: var(--portal-blue);
    font-size: 25px;
}

.panel-auth-notice h1 {
    margin: 18px 0 8px;
    color: var(--portal-ink);
    font-size: 26px;
    font-weight: 800;
}

.panel-auth-notice p {
    max-width: 470px;
    margin: 0 auto;
    color: var(--portal-muted);
    font-size: 14px;
    line-height: 1.65;
}

.panel-auth-notice__actions {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-top: 22px;
}

@media (max-width: 900px) {
    .panel-limit-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .panel-list-grid { grid-template-columns: 1fr; }
}

@media (max-width: 640px) {
    .member-panel { padding: 28px 0 48px; }
    .panel-welcome { align-items: flex-start; flex-direction: column; padding: 22px; }
    .panel-welcome h1 { font-size: 26px; }
    .panel-section-heading h2 { font-size: 20px; }
    .panel-limit-grid { gap: 9px; }
    .panel-limit-card { min-height: 94px; gap: 10px; padding: 12px; }
    .panel-limit-card__icon { width: 38px; height: 38px; font-size: 17px; }
    .panel-limit-card strong { font-size: 20px; }
    .panel-limit-card span:not(.panel-limit-card__icon) { font-size: 11px; }
    .panel-create-grid { grid-template-columns: 1fr; }
    .panel-upgrade { align-items: flex-start; flex-wrap: wrap; padding: 15px; }
    .panel-upgrade__copy { min-width: calc(100% - 60px); }
    .panel-upgrade__actions { width: 100%; padding-left: 58px; }
    .panel-auth-notice { margin: 24px auto; padding: 28px 20px; }
    .panel-auth-notice h1 { font-size: 22px; }
    .panel-auth-notice__actions { flex-direction: column; }
}

.panel-liked-list{margin:0;max-height:320px;overflow-y:auto;line-height:1.9;font-size:.92rem;color:#64748b}
.panel-liked-list a{color:#0f2a47;text-decoration:none;font-weight:600}
.panel-liked-list a:hover{color:#1f6feb;text-decoration:underline}
