/* ================================================================================================================ */
/* ЛИЧНЫЙ КАБИНЕТ — cabinet.css (full-width dashboard layout)                                                      */
/* main.css и script.js не изменяются                                                                              */
/* ================================================================================================================ */

/* ── Reset wrapper for cabinet ── */
.cab-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: #f4f6fa;
}

/* ── Sticky wrapper for the inherited header-old ── */
.cab-header-sticky {
    position: sticky;
    top: 0;
    z-index: 200;
}

/* ── Main layout ── */
.cab-layout {
    display: flex;
    flex: 1;
    min-height: calc(100vh - 70px);
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
}

/* ── Sidebar ── */
.cab-sidebar {
    width: 260px;
    flex: 0 0 260px;
    margin-left: 32px;
    background: #fff;
    border-right: 1px solid #e4e4e4;
    display: flex;
    flex-direction: column;
    position: sticky;
    top: 70px;
    height: calc(100vh - 70px);
    overflow-y: auto;
}

/* User card inside sidebar */
.cab-user-card {
    padding: 24px 20px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.cab-user-card__avatar {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    overflow: hidden;
    background: #f4f6fa;
    flex-shrink: 0;
    border: 3px solid #f4f6fa;
}

.cab-user-card__avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cab-user-card__name {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    margin: 0;
    text-align: center;
}

.cab-user-card__stars {
    display: flex;
    gap: 3px;
}

.cab-user-card__stars span {
    font-size: 16px;
    color: #e4e4e4;
}

.cab-user-card__stars span.filled {
    color: #ffae49;
}

/* Balance block in sidebar */
.cab-balance-block {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.cab-balance-block__label {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #808080;
    margin: 0 0 4px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.cab-balance-block__amount {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 26px;
    color: #1a1a1a;
    margin: 0 0 12px 0;
}

.cab-balance-block__amount span {
    font-size: 16px;
    font-weight: 500;
    color: #808080;
}

.cab-balance-block__btns {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
}

.cab-btn-add {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    background: linear-gradient(270deg, #ffae49 0%, #fe7653 100%);
    border-radius: 6px;
    padding: 9px 10px;
    text-align: center;
    cursor: pointer;
    border: none;
    transition: 0.2s;
    display: block;
}

.cab-btn-add:hover {
    opacity: 0.88;
}

.cab-btn-withdraw {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #1a1a1a;
    background: #f4f6fa;
    border-radius: 6px;
    padding: 9px 10px;
    text-align: center;
    cursor: pointer;
    border: 1px solid #e4e4e4;
    transition: 0.2s;
    display: block;
}

.cab-btn-withdraw:hover {
    border-color: #ffae49;
    color: #ffae49;
}

/* Sidebar nav */
.cab-nav {
    flex: 1;
    padding: 8px 0 0;
}

.cab-nav__group-label {
    font-family: "Poppins", sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.10em;
    text-transform: uppercase;
    color: #9ca3af;
    padding: 4px 20px 4px 28px;
    margin: 16px 0 0;
    user-select: none;
}

.cab-nav__item + .cab-nav__group-label {
    margin-top: 8px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.cab-nav__item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px 11px 28px;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #4a4a4a;
    cursor: pointer;
    transition: 0.2s;
    border-left: 3px solid transparent;
    position: relative;
    text-decoration: none;
}

.cab-nav__item:before {
    font-size: 20px;
    color: #808080;
    transition: 0.2s;
    flex-shrink: 0;
}

.cab-nav__item:hover {
    background: #fff9f3;
    color: #ffae49;
    border-left-color: #ffe0b2;
}

.cab-nav__item:hover:before {
    color: #ffae49;
}

.cab-nav__item.active {
    background: #fff4e8;
    color: #ffae49;
    border-left-color: #ffae49;
    font-weight: 600;
}

.cab-nav__item.active:before {
    color: #ffae49;
}

.cab-nav__badge {
    margin-left: auto;
    background: #fe7653;
    color: #fff;
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 11px;
    border-radius: 50px;
    padding: 2px 7px;
    min-width: 20px;
    text-align: center;
}

.cab-nav__divider {
    height: 1px;
    background: #f0f0f0;
    margin: 6px 0;
}

/* Dark mode row */
.cab-nav__darkmode {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 11px 20px;
}

.cab-nav__darkmode-label {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #4a4a4a;
    flex: 1;
    display: flex;
    align-items: center;
    gap: 12px;
}

.cab-nav__darkmode-label:before {
    font-size: 20px;
    color: #808080;
}

/* Logout */
.cab-nav__item--logout {
    color: #808080;
    margin-top: auto;
}

.cab-nav__item--logout:hover {
    color: #e52d2e;
    background: #fff5f5;
    border-left-color: #ffd0d0;
}

.cab-nav__item--logout:hover:before {
    color: #e52d2e;
}

/* ── Content area ── */
.cab-content {
    flex: 1;
    min-width: 0;
    padding: 10px 32px 32px;
    overflow-y: auto;
}

/* ── Panel ── */
.cab-panel {
    display: none;
}

.cab-panel.active {
    display: block;
}

/* Panel top bar */
.cab-panel__top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.cab-panel__title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 24px;
    color: #1a1a1a;
    margin: 0;
}

.cab-panel__welcome {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 15px;
    color: #808080;
    margin: 0;
}

.cab-panel__welcome strong {
    color: #1a1a1a;
}

/* ── Stat cards ── */
.cab-stat-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
    margin-bottom: 28px;
}

.cab-stat-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.cab-stat-card__label {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #808080;
    margin: 0 0 6px 0;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cab-stat-card__label:before {
    font-size: 18px;
}

.cab-stat-card__value {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 30px;
    color: #1a1a1a;
    margin: 0;
    line-height: 1.1;
}

.cab-stat-card__value span {
    font-size: 16px;
    font-weight: 500;
    color: #808080;
}

.cab-stat-card--accent {
    background: linear-gradient(270deg, #ffae49 0%, #fe7653 100%);
    border-color: transparent;
}

.cab-stat-card--accent .cab-stat-card__label {
    color: rgba(255,255,255,0.75);
}

.cab-stat-card--accent .cab-stat-card__value {
    color: #fff;
}

.cab-stat-card--accent .cab-stat-card__value span {
    color: rgba(255,255,255,0.75);
}

/* ── Two-column grid ── */
.cab-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

/* ── Box / Card ── */
.cab-box {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.cab-box__head {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.cab-box__title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    margin: 0;
}

.cab-box__link {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #ffae49;
    transition: 0.2s;
    cursor: pointer;
}

.cab-box__link:hover {
    color: #fe7653;
}

.cab-box__body {
    padding: 0;
}

/* ── Activity table ── */
.cab-table {
    width: 100%;
    border-collapse: collapse;
}

.cab-table th {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 11px;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 10px 16px;
    text-align: left;
    background: #fafafa;
    border-bottom: 1px solid #f0f0f0;
}

.cab-table td {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #1a1a1a;
    padding: 10px 16px;
    border-bottom: 1px solid #f7f7f7;
}

.cab-table tr:last-child td {
    border-bottom: none;
}

.cab-table tr:hover td {
    background: #fafafa;
}

.cab-table__amount--plus {
    font-weight: 600;
    color: #1a8c3e;
}

.cab-table__amount--minus {
    font-weight: 600;
    color: #e52d2e;
}

.cab-table__date {
    color: #808080;
    font-size: 12px;
}

.cab-table__method {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    background: #f4f6fa;
    border-radius: 4px;
    padding: 2px 8px;
}

/* ── Deposit / Withdraw forms ── */
.cab-form-box {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.cab-form-box__tabs {
    display: flex;
    border-bottom: 1px solid #f0f0f0;
}

.cab-form-box__tab {
    flex: 1;
    padding: 14px;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #808080;
    text-align: center;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: 0.2s;
    margin-bottom: -1px;
}

.cab-form-box__tab.active {
    color: #ffae49;
    border-bottom-color: #ffae49;
}

.cab-form-box__tab:hover {
    color: #ffae49;
}

.cab-form-box__body {
    padding: 20px;
}

.cab-form-box__sub {
    display: none;
}

.cab-form-box__sub.active {
    display: block;
}

.cab-amount-btns {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    margin-bottom: 14px;
}

.cab-amount-btn {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #1a1a1a;
    padding: 7px 14px;
    border-radius: 6px;
    border: 1px solid #e4e4e4;
    background: #f4f6fa;
    cursor: pointer;
    transition: 0.2s;
}

.cab-amount-btn:hover,
.cab-amount-btn.active {
    background: linear-gradient(270deg, #ffae49 0%, #fe7653 100%);
    color: #fff;
    border-color: transparent;
}

.cab-method-select {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 14px;
}

.cab-method-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 14px;
    border: 1px solid #e4e4e4;
    border-radius: 8px;
    cursor: pointer;
    transition: 0.2s;
}

.cab-method-item input[type="radio"] {
    accent-color: #ffae49;
    width: 16px;
    height: 16px;
}

.cab-method-item:hover {
    border-color: #ffae49;
    background: #fff9f3;
}

.cab-method-item__label {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #1a1a1a;
}

/* ── Upcoming bills ── */
.cab-bills-empty {
    text-align: center;
    padding: 40px 20px;
    color: #808080;
    font-family: "Poppins", sans-serif;
    font-size: 14px;
}

.cab-bills-empty:before {
    display: block;
    font-size: 40px;
    color: #e4e4e4;
    margin-bottom: 12px;
}

/* ── My Ads ── */
.cab-ads-filter {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.cab-filter-btn {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 13px;
    color: #808080;
    padding: 6px 16px;
    border-radius: 50px;
    border: 1px solid #e4e4e4;
    background: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.cab-filter-btn.active,
.cab-filter-btn:hover {
    background: linear-gradient(270deg, #ffae49 0%, #fe7653 100%);
    color: #fff;
    border-color: transparent;
}

.cab-add-btn {
    margin-left: auto;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #fff;
    padding: 8px 18px;
    border-radius: 6px;
    background: linear-gradient(270deg, #ffae49 0%, #fe7653 100%);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: 0.2s;
}

.cab-add-btn:before {
    font-size: 16px;
    color: #fff;
}

.cab-add-btn:hover {
    opacity: 0.88;
}

.cab-ads-table {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.cab-ads-table .cab-table td:first-child {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}
.cab-ads-table-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding-top: 2px;
}
.cab-promo-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.2px;
    padding: 2px 8px;
    border-radius: 20px;
    white-space: nowrap;
    width: fit-content;
}
.cab-promo-badge--vip {
    background: #fef3c7;
    color: #92600a;
}
.cab-promo-badge--pro {
    background: #fff6ee;
    color: #e07d1f;
}
.cab-promo-badge--warning {
    background: #fff7ed !important;
    color: #c2660a !important;
    border: 1px solid #fed7aa;
}
.cab-promo-badge--urgent {
    background: #fef2f2 !important;
    color: #dc2626 !important;
    border: 1px solid #fecaca;
}

.cab-ads-table-img {
    width: 54px;
    height: 42px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.cab-ads-table-title {
    font-weight: 500;
    color: #1a1a1a;
}

.cab-status {
    display: inline-block;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 50px;
    text-transform: uppercase;
}

.cab-status--active { background: #e6f9ee; color: #1a8c3e; }
.cab-status--inactive { background: #f0f0f0; color: #808080; }
.cab-status--pending { background: #fff3e0; color: #e88200; }

.cab-table-actions {
    display: flex;
    gap: 6px;
    align-items: center;
}

/* Extend button (for VIP/PRO ads) */
.cab-extend-btn {
    height: 30px;
    padding: 0 10px;
    border-radius: 6px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid;
    background: #fff;
    transition: all .18s;
    white-space: nowrap;
}
.cab-extend-btn--vip {
    border-color: rgba(212,160,0,.6);
    color: #92600a;
}
.cab-extend-btn--vip:hover {
    background: #fef3c7;
    border-color: #c99a10;
}
.cab-extend-btn--pro {
    border-color: rgba(255,145,56,.6);
    color: #e07d1f;
}
.cab-extend-btn--pro:hover {
    background: #fff6ee;
    border-color: #ff9138;
}
.cab-extend-btn--warning-state {
    border-color: rgba(249,115,22,.45) !important;
    color: #c2660a !important;
    background: #fffaf6 !important;
}
.cab-extend-btn--urgent-state {
    border-color: rgba(220,38,38,.55) !important;
    color: #dc2626 !important;
    background: #fff8f8 !important;
    animation: extendPulse 3s ease-in-out infinite;
}
@keyframes extendPulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(220,38,38,.15); }
    50%       { box-shadow: 0 0 0 4px rgba(220,38,38,0); }
}

/* Boost button (for free active ads) */
.cab-boost-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #ff9138;
    background: none;
    border: 1.5px solid rgba(255,145,56,.5);
    border-radius: 20px;
    padding: 2px 10px;
    cursor: pointer;
    transition: all .18s;
    white-space: nowrap;
    width: fit-content;
}
.cab-boost-btn:hover {
    background: #fff6ee;
    border-color: #ff9138;
    color: #e07000;
}

.cab-icon-btn {
    width: 30px;
    height: 30px;
    border-radius: 6px;
    border: 1px solid #e4e4e4;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
}

.cab-icon-btn:before {
    font-size: 14px;
    color: #808080;
}

.cab-icon-btn:hover {
    border-color: #ffae49;
}

.cab-icon-btn:hover:before {
    color: #ffae49;
}

.cab-icon-btn--danger:hover {
    border-color: #e52d2e;
    background: #fff5f5;
}

.cab-icon-btn--danger:hover:before {
    color: #e52d2e;
}

/* ── Edit Profile ── */
.cab-profile-grid {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 24px;
    align-items: start;
}

.cab-profile-photo-col {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.cab-avatar-upload {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    overflow: hidden;
    background: #f4f6fa;
    border: 3px dashed #e4e4e4;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    margin: 0 auto 14px;
    position: relative;
    transition: 0.2s;
}

.cab-avatar-upload:hover {
    border-color: #ffae49;
}

.cab-avatar-upload img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: none;
}

.cab-avatar-upload img.loaded {
    display: block;
}

.cab-avatar-upload__icon {
    font-size: 40px;
    color: #ccc;
}

.cab-avatar-upload__overlay {
    position: absolute;
    inset: 0;
    background: rgba(255,174,73,0.75);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: 0.2s;
    border-radius: 50%;
}

.cab-avatar-upload__overlay:before {
    font-size: 28px;
    color: #fff;
}

.cab-avatar-upload:hover .cab-avatar-upload__overlay {
    opacity: 1;
}

.cab-avatar-upload input[type="file"] {
    display: none;
}

.cab-avatar-hint {
    font-family: "Poppins", sans-serif;
    font-size: 12px;
    color: #808080;
    line-height: 1.5;
}

.cab-profile-form-col {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
}

.cab-form-section-title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0 0 16px 0;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}

.cab-form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0 20px;
}

.cab-form-grid .input-custom {
    margin: 10px 0;
}

.cab-form-full {
    grid-column: 1 / -1;
}

.cab-form-actions {
    margin-top: 20px;
    display: flex;
    gap: 10px;
}

/* ── Payments ── */
.cab-payments-top {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

/* ── Favorites grid ── */
.cab-fav-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

.cab-fav-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
}

.cab-fav-card__img {
    position: relative;
    padding-bottom: 65%;
}

.cab-fav-card__img img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cab-fav-card__body {
    padding: 12px 14px;
    flex: 1;
}

.cab-fav-card__title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin: 0 0 5px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.cab-fav-card__price {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #ffae49;
    margin: 0;
}

.cab-fav-card__foot {
    padding: 10px 14px;
    border-top: 1px solid #f0f0f0;
    display: flex;
    gap: 8px;
}

.cab-btn-sm {
    flex: 1;
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 12px;
    padding: 7px;
    border-radius: 6px;
    text-align: center;
    cursor: pointer;
    transition: 0.2s;
}

.cab-btn-sm--primary {
    background: linear-gradient(270deg, #ffae49 0%, #fe7653 100%);
    color: #fff;
    border: none;
}

.cab-btn-sm--outline {
    background: #fff;
    color: #808080;
    border: 1px solid #e4e4e4;
}

.cab-btn-sm--outline:hover {
    border-color: #e52d2e;
    color: #e52d2e;
}

/* ── Subscriptions ── */
.cab-sub-card {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    padding: 20px 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 12px;
}

.cab-sub-card__info {
    display: flex;
    flex-direction: column;
}

.cab-sub-card__name {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
    margin: 0;
}

.cab-sub-card__meta {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #808080;
    margin: 0;
}

.cab-sub-card__right {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-shrink: 0;
}

.cab-sub-card__price {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #ffae49;
    margin: 0;
}

/* ── Settings ── */
.cab-settings-box {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    margin-bottom: 20px;
}

.cab-settings-head {
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    background: #fafafa;
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 13px;
    color: #808080;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin: 0;
}

.cab-settings-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 20px;
    transition: 0.2s;
}

.cab-settings-row:not(:last-child) {
    border-bottom: 1px solid #f7f7f7;
}

.cab-settings-row:hover {
    background: #fafafa;
}

.cab-settings-row__left {
    display: flex;
    align-items: center;
    gap: 14px;
}

.cab-settings-row__icon {
    font-size: 22px;
    color: #ffae49;
}

.cab-settings-row__info p {
    margin: 0;
}

.cab-settings-row__name {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #1a1a1a;
}

.cab-settings-row__desc {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: #808080;
}

/* ── Support / FAQ ── */
.cab-faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.cab-faq-item {
    background: #fff;
    border: 1px solid #e4e4e4;
    border-radius: 10px;
    overflow: hidden;
}

.cab-faq-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    transition: 0.2s;
}

.cab-faq-head:hover {
    background: #fff9f3;
}

.cab-faq-question {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 14px;
    color: #1a1a1a;
    margin: 0;
}

.cab-faq-arrow {
    font-size: 9px;
    color: #808080;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.cab-faq-item.open .cab-faq-arrow {
    transform: rotate(180deg);
}

.cab-faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.cab-faq-item.open .cab-faq-body {
    max-height: 400px;
}

.cab-faq-answer {
    padding: 0 20px 18px;
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #808080;
    line-height: 1.7;
    margin: 0;
    border-top: 1px solid #f0f0f0;
    padding-top: 14px;
}

/* ── Logout screen ── */
.cab-logout-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 16px;
    text-align: center;
}

.cab-logout-screen__icon {
    font-size: 64px;
    color: #e4e4e4;
}

.cab-logout-screen__title {
    font-family: "Poppins", sans-serif;
    font-weight: 700;
    font-size: 20px;
    color: #1a1a1a;
    margin: 0;
}

.cab-logout-screen__text {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 14px;
    color: #808080;
    margin: 0;
}

.cab-logout-screen__btns {
    display: flex;
    gap: 12px;
    margin-top: 8px;
}

/* ── Misc ── */
.cab-btn-ghost {
    font-family: "Poppins", sans-serif;
    font-weight: 500;
    font-size: 14px;
    color: #808080;
    padding: 9px 20px;
    border-radius: 6px;
    border: 1px solid #e4e4e4;
    background: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.cab-btn-ghost:hover {
    border-color: #ffae49;
    color: #ffae49;
}

.cab-empty {
    text-align: center;
    padding: 60px 20px;
}

.cab-empty__icon {
    font-size: 52px;
    color: #e4e4e4;
    margin-bottom: 12px;
}

.cab-empty__title {
    font-family: "Poppins", sans-serif;
    font-weight: 600;
    font-size: 17px;
    color: #1a1a1a;
    margin: 0 0 8px;
}

.cab-empty__text {
    font-family: "Poppins", sans-serif;
    font-weight: 400;
    font-size: 13px;
    color: #808080;
    margin: 0 0 20px;
}

/* ── Footer inside cabinet ── */
.cab-footer {
    margin-top: auto;
    background: #fff;
    border-top: 1px solid #e4e4e4;
}

/* ── Responsive ── */
@media screen and (max-width: 1100px) {
    .cab-two-col {
        grid-template-columns: 1fr;
    }
    .cab-payments-top {
        grid-template-columns: 1fr 1fr;
    }
}

@media screen and (max-width: 900px) {
    .cab-sidebar {
        width: 220px;
        flex: 0 0 220px;
    }
    .cab-profile-grid {
        grid-template-columns: 1fr;
    }
    .cab-form-grid {
        grid-template-columns: 1fr;
    }
}

@media screen and (max-width: 768px) {
    .cab-layout {
        flex-direction: column;
    }

    .cab-sidebar {
        width: 100%;
        flex: none;
        height: auto;
        position: static;
        border-right: none;
        border-bottom: 1px solid #e4e4e4;
    }

    .cab-user-card {
        flex-direction: row;
        text-align: left;
        gap: 14px;
        align-items: center;
    }

    .cab-user-card__name {
        text-align: left;
    }

    .cab-nav {
        display: flex;
        overflow-x: auto;
        padding: 0;
        -webkit-overflow-scrolling: touch;
    }

    .cab-nav__item {
        flex-direction: column;
        gap: 4px;
        padding: 10px 14px;
        font-size: 11px;
        border-left: none;
        border-bottom: 2px solid transparent;
        white-space: nowrap;
        flex-shrink: 0;
        text-align: center;
    }

    .cab-nav__item.active {
        border-bottom-color: #ffae49;
        border-left: none;
    }

    .cab-nav__item:before {
        font-size: 18px;
        margin: 0;
    }

    .cab-nav__divider {
        display: none;
    }

    .cab-nav__darkmode {
        padding: 10px 14px;
        flex-direction: column;
        gap: 4px;
        flex-shrink: 0;
    }

    .cab-content {
        padding: 20px 16px 80px;
    }

    .cab-stat-cards {
        grid-template-columns: 1fr 1fr;
    }

}

@media screen and (max-width: 576px) {
    .cab-stat-cards {
        grid-template-columns: 1fr;
    }
    .cab-fav-grid {
        grid-template-columns: 1fr;
    }
    .cab-payments-top {
        grid-template-columns: 1fr;
    }
}

/* ── header-old overrides for cabinet (from bazar-ui) ── */
.cab-page .header-old {
    padding: 8px 0 !important;
    background: #ffffff;
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.15);
}
.cab-page .header-old .logo img {
    max-height: 70px !important;
    width: auto !important;
    transform: scale(1.12);
    transform-origin: left center;
}
.cab-page .header-old__body {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.cab-page .header-old__right {
    display: flex;
    align-items: center;
}
.cab-page .header-old__cell {
    position: relative;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 24px;
}
.cab-page .header-old__cell:first-child { padding-left: 0; }
.cab-page .header-old__cell:last-child { padding-right: 0; }
.cab-page .header-old__cell:after {
    content: "";
    width: 2px;
    height: 40px;
    background: #e7e7e7;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
}
.cab-page .header-old__cell:last-child::after { display: none; }

.cab-page .user-link {
    cursor: pointer;
    position: relative;
    display: flex;
    align-items: center;
}
.cab-page .user-menu {
    position: absolute;
    top: 100%;
    right: 0;
    background: #fff;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    border-radius: 0 0 24px 24px;
    padding: 16px 20px;
    min-width: 220px;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
    z-index: 100;
}
.cab-page .user-link:hover .user-menu {
    opacity: 1;
    visibility: visible;
}

.cab-page .icon-item__namber {
    background: #e82222 !important;
    color: #fff !important;
}
.cab-page .btn_mini,
.cab-page .btn.btn_mini {
    background: #ff9138 !important;
    border-color: #ff9138 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
}
.cab-page .btn_mini:hover,
.cab-page .btn.btn_mini:hover {
    background: #e07d2a !important;
}

/* ════════════════════════════════════════════
   MY MESSAGES PANEL
════════════════════════════════════════════ */
.cab-panel--messages { margin-top: 16px; }
.cab-msgs-wrap {
    display: flex;
    height: calc(100vh - 140px);
    min-height: 460px;
    max-width: 1060px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 2px 16px rgba(0,0,0,.06);
}

/* ── Conversation list ── */
.cab-msgs-list {
    width: 280px;
    flex-shrink: 0;
    border-right: 1px solid #f0f0f0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}
.cab-msgs-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 14px 14px;
    border-bottom: 1px solid #f0f0f0;
}
.cab-msgs-search__icon-btn {
    background: none;
    border: none;
    font-size: 15px;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    flex-shrink: 0;
    opacity: .5;
    transition: opacity .15s;
}
.cab-msgs-search__icon-btn:hover { opacity: 1; }
.cab-msgs-search__label {
    font-size: 15px;
    font-weight: 700;
    color: #1a1a1a;
    font-family: 'Poppins', sans-serif;
    flex: 1;
}
.cab-msgs-search__input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    color: #333;
    background: transparent;
}
.cab-msgs-search__input--hidden { display: none; }
.cab-msgs-convs { flex: 1; overflow-y: auto; }

.cab-conv-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 13px 14px;
    cursor: pointer;
    position: relative;
    border-left: 3px solid transparent;
    transition: background .18s, border-color .18s;
}
.cab-conv-item:hover { background: #f5f5f5; }
.cab-conv-item.active {
    background: #fff6ee;
    border-left-color: #ff9138;
    box-shadow: inset 2px 0 8px rgba(255,145,56,.06);
}
.cab-conv-avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    overflow: hidden;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 16px;
    color: #fff;
    background: #ccc;
}
.cab-conv-avatar img { width: 100%; height: 100%; object-fit: cover; }
.cab-conv-avatar--orange { background: #ff9138; }
.cab-conv-body { flex: 1; min-width: 0; }
.cab-conv-top { display: flex; justify-content: space-between; align-items: center; gap: 6px; }
.cab-conv-name { font-size: 14px; font-weight: 600; color: #1a1a1a; }
.cab-conv-time { font-size: 11px; color: #aaa; flex-shrink: 0; }
.cab-conv-preview { font-size: 12px; color: #999; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-top: 3px; }
.cab-conv-badge {
    background: #f4705a;
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.cab-conv-online {
    width: 9px;
    height: 9px;
    background: #3ecb60;
    border-radius: 50%;
    border: 2px solid #fff;
    position: absolute;
    bottom: 12px;
    left: 44px;
}

/* ── Chat area ── */
.cab-msgs-chat {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    position: relative;
}
.cab-chat-content { display: none; flex-direction: column; height: 100%; overflow: hidden; }

.cab-chat-head {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.cab-chat-head__avatar {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.cab-chat-head__avatar--b {
    background: #ff9138;
    color: #fff;
    font-weight: 700;
    font-size: 17px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 42px;
    height: 42px;
    flex-shrink: 0;
}
.cab-chat-head__name { font-size: 15px; font-weight: 600; color: #1a1a1a; }
.cab-chat-head__status { font-size: 12px; color: #3ecb60; margin-top: 1px; }
.cab-chat-head__ad {
    margin-left: auto;
    display: flex;
    align-items: center;
    gap: 8px;
    background: #fafafa;
    border: 1px solid #ebebeb;
    border-radius: 10px;
    padding: 7px 10px;
    flex-shrink: 0;
    transition: border-color .18s, box-shadow .18s, background .18s;
    cursor: pointer;
}
.cab-chat-head__ad:hover {
    background: #fff6ee;
    border-color: #FFD8B5;
    box-shadow: 0 2px 8px rgba(255,145,56,.1);
}

/* ── Typing indicator ── */
@keyframes typingDot {
    0%, 60%, 100% { transform: translateY(0); opacity: .4; }
    30%            { transform: translateY(-4px); opacity: 1; }
}
.cab-typing {
    display: flex;
    align-items: center;
    gap: 8px;
    align-self: flex-start;
    padding: 4px 0;
    animation: bubbleIn .22s ease both;
}
.cab-typing__dots {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #f2f2f2;
    border-radius: 16px;
    border-bottom-left-radius: 4px;
    padding: 10px 14px;
    box-shadow: 0 1px 2px rgba(0,0,0,.05);
}
.cab-typing__dot {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #aaa;
    animation: typingDot 1.2s infinite;
}
.cab-typing__dot:nth-child(2) { animation-delay: .2s; }
.cab-typing__dot:nth-child(3) { animation-delay: .4s; }
.cab-typing__label { font-size: 11px; color: #bbb; }

.cab-chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 18px 20px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.cab-chat-date {
    text-align: center;
    font-size: 12px;
    color: #bbb;
    margin: 4px 0;
}

@keyframes bubbleIn {
    from { opacity: 0; transform: translateY(6px); }
    to   { opacity: 1; transform: translateY(0); }
}
.cab-bubble { display: flex; align-items: flex-end; gap: 8px; max-width: 65%; animation: bubbleIn .22s ease both; }
.cab-bubble--in { align-self: flex-start; }
.cab-bubble--out { align-self: flex-end; flex-direction: row-reverse; }
.cab-bubble__avatar {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.cab-bubble__avatar--b {
    background: #ff9138;
    color: #fff;
    font-weight: 700;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    flex-shrink: 0;
}
.cab-bubble__text {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 15px;
    line-height: 1.55;
    color: #1a1a1a;
    word-break: break-word;
}
.cab-bubble--in .cab-bubble__text { background: #f2f2f2; border-bottom-left-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.cab-bubble--out .cab-bubble__text { background: #FBE9D8; color: #333; border: 1px solid #F5CBA7; border-bottom-right-radius: 4px; box-shadow: 0 1px 2px rgba(0,0,0,.05); }
.cab-bubble__time { font-size: 12px; color: #999; flex-shrink: 0; white-space: nowrap; }
.cab-bubble--out .cab-bubble__time { color: #999; }

.cab-chat-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    border-top: 1px solid #f0f0f0;
    flex-shrink: 0;
}
.cab-chat-attach, .cab-chat-emoji { background: none; border: none; cursor: pointer; font-size: 18px; opacity: .45; padding: 4px; transition: opacity .15s; }
.cab-chat-attach:hover, .cab-chat-emoji:hover { opacity: 1; }
.cab-chat-input {
    flex: 1;
    border: 1px solid #e0e0e0;
    border-radius: 22px;
    padding: 9px 16px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    transition: border-color .2s;
}
.cab-chat-input:focus { border-color: #ff9138; box-shadow: 0 0 0 3px rgba(255,145,56,.12); }
.cab-chat-input::placeholder { color: #bbb; }
.cab-chat-send {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: #ff9138;
    border: none;
    color: #fff;
    font-size: 17px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: background .2s, transform .12s;
}
.cab-chat-send:hover { background: #e07d2a; transform: scale(1.07); }
.cab-chat-send:active { transform: scale(0.93); }

/* ── Ad status badge & view button in chat head ── */
.cab-ad-status {
    display: inline-flex;
    align-items: center;
    padding: 3px 8px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}
.cab-ad-status--active { background: #e8f9ee; color: #2aab52; }
.cab-ad-status--reserved { background: #fff3e0; color: #e07d2a; }
.cab-ad-status--sold { background: #fdecea; color: #e03030; }
.cab-ad-viewbtn {
    text-decoration: none;
    font-size: 12px;
    font-weight: 600;
    color: #ff9138;
    white-space: nowrap;
    padding: 4px 10px;
    border: 1px solid #ff9138;
    border-radius: 8px;
    transition: background .15s, color .15s;
    flex-shrink: 0;
}
.cab-ad-viewbtn:hover { background: #ff9138; color: #fff; }

/* ── Quick replies ── */
.cab-quick-replies {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 8px 14px;
    flex-wrap: wrap;
    border-top: 1px solid #f5f5f5;
    background: #fafafa;
}
.cab-qr-btn {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    color: #555;
    cursor: pointer;
    transition: border-color .15s, color .15s, background .15s;
    white-space: nowrap;
    font-weight: 500;
}
.cab-qr-btn:hover { border-color: #ff9138; color: #ff9138; background: #fff; transform: translateY(-1px); box-shadow: 0 2px 6px rgba(0,0,0,.07); }
.cab-qr-btn { transition: border-color .15s, color .15s, background .15s, transform .12s, box-shadow .12s; }
.cab-qr-btn--offer { background: #fff; border-color: #ff9138; color: #ff9138; font-weight: 600; }
.cab-qr-btn--offer:hover { background: #ff9138; color: #fff; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(255,145,56,.25); }
.cab-qr-btn--schedule { background: #fff; border-color: #5b8dee; color: #5b8dee; font-weight: 600; }
.cab-qr-btn--schedule:hover { background: #5b8dee; color: #fff; transform: translateY(-1px); box-shadow: 0 3px 8px rgba(91,141,238,.25); }

/* ── Make an offer panel ── */
.cab-offer-panel {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #fff8f2;
    border-top: 1px solid #ffe0c0;
}
.cab-offer-panel.is-open { display: flex; }
.cab-offer-panel__title { font-size: 13px; font-weight: 600; color: #ff9138; white-space: nowrap; }
.cab-offer-panel__row { display: flex; align-items: center; gap: 6px; flex: 1; }
.cab-offer-panel__currency { font-size: 15px; font-weight: 700; color: #1a1a1a; }
.cab-offer-panel__input {
    flex: 1;
    border: 1px solid #ffd0a0;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 14px;
    font-family: 'Poppins', sans-serif;
    outline: none;
}
.cab-offer-panel__input:focus { border-color: #ff9138; }
.cab-offer-panel__send {
    background: #ff9138;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background .2s;
    white-space: nowrap;
}
.cab-offer-panel__send:hover { background: #e07d2a; }
.cab-offer-panel__cancel {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #aaa;
    padding: 4px;
    line-height: 1;
}
.cab-offer-panel__cancel:hover { color: #666; }

/* ── Schedule viewing panel ── */
.cab-schedule-panel {
    display: none;
    align-items: center;
    gap: 8px;
    padding: 10px 14px;
    background: #f0f4ff;
    border-top: 1px solid #c8d8ff;
}
.cab-schedule-panel.is-open { display: flex; }
.cab-schedule-panel__title { font-size: 13px; font-weight: 600; color: #5b8dee; white-space: nowrap; }
.cab-schedule-panel__row { display: flex; align-items: center; gap: 6px; flex: 1; flex-wrap: wrap; }
.cab-schedule-panel__input {
    border: 1px solid #c8d8ff;
    border-radius: 10px;
    padding: 7px 12px;
    font-size: 13px;
    font-family: 'Poppins', sans-serif;
    outline: none;
    cursor: pointer;
}
.cab-schedule-panel__input:focus { border-color: #5b8dee; }
.cab-schedule-panel__send {
    background: #5b8dee;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 7px 14px;
    font-size: 13px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: background .2s;
}
.cab-schedule-panel__send:hover { background: #3d6fd4; }
.cab-schedule-panel__cancel {
    background: none;
    border: none;
    font-size: 16px;
    cursor: pointer;
    color: #aaa;
    padding: 4px;
    line-height: 1;
}
.cab-schedule-panel__cancel:hover { color: #666; }

/* ── Offer bubble actions ── */
.cab-offer-actions { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.cab-offer-btn {
    border: none;
    border-radius: 8px;
    padding: 4px 10px;
    font-size: 12px;
    font-weight: 600;
    font-family: 'Poppins', sans-serif;
    cursor: pointer;
    transition: opacity .15s;
}
.cab-offer-btn:hover { opacity: .8; }
.cab-offer-btn--accept { background: #e8f9ee; color: #2aab52; }
.cab-offer-btn--counter { background: #fff3e0; color: #e07d2a; }
.cab-offer-btn--reject { background: #fdecea; color: #e03030; }

/* ══════════════ PLAN CARDS (My Subscriptions) ══════════════ */
.cab-sub-plans-title {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 22px;
    color: #1a1a1a;
    margin: 0 0 4px;
}
.cab-sub-plans-sub {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: #888;
    margin: 0 0 24px;
}
.cab-sub-plans-section {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .07em;
    color: #b0b0b0;
    margin: 28px 0 10px;
}
.po-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 22px;
    align-items: start;
}
.po-card {
    background: #fff;
    border-radius: 16px;
    border: 2px solid #eee;
    padding: 28px 22px 22px;
    position: relative;
    cursor: pointer;
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}
.po-card:hover { box-shadow: 0 10px 36px rgba(0,0,0,.13); transform: translateY(-3px) scale(1.015); }
.po-card--free { border: 1.5px solid #d8ead8; }
.po-card--free:hover { box-shadow: 0 10px 28px rgba(62,203,96,.12); }
.po-card--pro  { border: 1.5px solid rgba(255,145,56,.65); box-shadow: 0 10px 30px rgba(255,140,0,.13); transform: scale(1.03); z-index: 2; }
.po-card--pro:hover  { transform: scale(1.05); box-shadow: 0 16px 40px rgba(255,140,0,.20); }
.po-card--vip  { border: 2px solid rgba(212,160,0,.80); box-shadow: 0 8px 28px rgba(212,163,0,.22); background: linear-gradient(160deg, #fffbf0 0%, #fff 55%); }
.po-card--vip:hover  { box-shadow: 0 14px 42px rgba(212,163,0,.32); }
.po-card.is-selected { outline: 2px solid #ccc; outline-offset: 2px; transform: translateY(-4px) scale(1.01); box-shadow: 0 10px 24px rgba(0,0,0,.10); }
.po-card--pro.is-selected { outline-color: rgba(255,145,56,.75); box-shadow: 0 10px 24px rgba(255,145,56,.18); }
.po-card--vip.is-selected { outline-color: rgba(212,160,0,.80); transform: translateY(-5px) scale(1.015); box-shadow: 0 14px 36px rgba(212,163,0,.30); }
.po-plan-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 3px 10px;
    border-radius: 20px;
    margin-bottom: 14px;
}
.po-plan-badge--free { background: #f7f7f7; color: #bbb; }
.po-plan-badge--pro  { background: #fff6ee; color: #f07d1f; }
.po-plan-badge--vip  { background: #fef3c7; color: #92600a; }
.po-recommended {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: #ff9138;
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .5px;
    padding: 4px 14px;
    border-radius: 20px;
    white-space: nowrap;
}
.po-plan-name {
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 19px;
    color: #1a1a1a;
    margin: 0 0 4px;
}
.po-plan-name--pro { color: #f07d1f; }
.po-plan-name--vip { color: #92600a; }
.po-position {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #999;
    margin: 0 0 2px;
}
.po-price {
    font-family: 'Poppins', sans-serif;
    font-weight: 800;
    font-size: 34px;
    color: #1a1a1a;
    margin: 0 0 4px;
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.po-price__currency { font-size: 20px; font-weight: 600; color: #888; }
.po-price__free     { font-size: 28px; font-weight: 800; color: #3ecb60; }
.po-plan-tagline {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    color: #ff9138;
    margin: -6px 0 10px;
}
.po-plan-tagline--vip { color: #b8880e; }
.po-price__note {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: #aaa;
    margin: 0 0 10px;
}
.po-duration-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin: 0 0 4px;
}
.po-dur-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.po-dur-label {
    font-family: 'Poppins', sans-serif;
    font-size: 9px;
    font-weight: 600;
    color: #3ecb60;
    text-align: center;
    white-space: nowrap;
    letter-spacing: .2px;
}
.po-dur-label--save {
    font-size: 9px;
    font-weight: 700;
    color: #fff;
    background: #3ecb60;
    padding: 1px 6px;
    border-radius: 20px;
    letter-spacing: .1px;
}
.po-duration-btn {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 6px;
    border: 1.5px solid #eee;
    background: #fff;
    color: #555;
    cursor: pointer;
    transition: all .15s;
    white-space: nowrap;
    text-align: center;
    width: 100%;
}
.po-duration-btn--best { border-color: #d0e8d0; background: #f4fbf4; }
.po-duration-btn--pro.active { border-color: #ff9138; border-width: 2px; background: #fff0e0; color: #e06800; font-weight: 700; box-shadow: 0 2px 8px rgba(255,145,56,.20); }
.po-duration-btn--vip.active { border-color: #c99a10; border-width: 2px; background: #fef0c0; color: #7a5200; font-weight: 700; box-shadow: 0 2px 8px rgba(212,160,0,.22); }
.po-divider { border: none; border-top: 1px solid #f0f0f0; margin: 16px 0; }
.po-features {
    list-style: none;
    padding: 0;
    margin: 0 0 20px;
    display: flex;
    flex-direction: column;
    gap: 9px;
}
.po-features li {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #444;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    line-height: 1.4;
}
.po-features li::before {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 1px;
    border-radius: 50%;
    background-repeat: no-repeat;
    background-position: center;
    background-size: 9px;
}
.po-card--free .po-features li::before { background-color:#f0f0f0; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='2,5 4,7.5 8,3' fill='none' stroke='%23aaa' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.po-card--pro  .po-features li::before { background-color:#fff6ee; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='2,5 4,7.5 8,3' fill='none' stroke='%23ff9138' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.po-card--vip  .po-features li::before { background-color:#fef3c7; background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 10 10'%3E%3Cpolyline points='2,5 4,7.5 8,3' fill='none' stroke='%2392600a' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.po-features li.po-feat--dim { color: #bbb; }
.po-features li.po-feat--dim::before { opacity: .35; }
.po-btn {
    display: block;
    width: 100%;
    padding: 13px;
    border-radius: 10px;
    border: none;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 14px;
    cursor: pointer;
    transition: background .2s, transform .1s;
    text-align: center;
}
.po-btn:active { transform: scale(.98); }
.po-btn--free { background: #f0faf4; color: #2aab52; border: 1.5px solid #b6dfc4; }
.po-btn--free:hover { background: #e4f7ec; color: #1e9144; border-color: #9ccfb0; }
.po-btn--pro  { background: #ff9138; color: #fff; border: none; }
.po-btn--pro:hover  { background: #f07d1f; }
.po-btn--vip  { background: linear-gradient(135deg, #c99a10 0%, #a07208 100%); color: #fff; border: none; box-shadow: 0 4px 14px rgba(180,130,10,.35); }
.po-btn--vip:hover  { background: linear-gradient(135deg, #b88c0e 0%, #8f6507 100%); box-shadow: 0 6px 18px rgba(180,130,10,.45); }
.cab-panel__subtitle {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    font-weight: 400;
    color: #999;
    margin: 4px 0 0;
}
@media (max-width: 900px) {
    .po-cards { grid-template-columns: 1fr; gap: 14px; }
    .po-card--pro { order: -2; }
    .po-card--vip { order: -1; }
}

/* ── Active plan state ── */
.po-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 2px;
}
.po-active-pill {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    background: #e8f9ec;
    color: #259a44;
    border: 1px solid #a8e6bc;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 10px;
    letter-spacing: .3px;
    white-space: nowrap;
}
.po-active-meta {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    font-weight: 500;
    letter-spacing: 0.2px;
    color: #6b7280;
    margin: 0 0 12px;
    padding: 6px 10px;
    background: #f3f4f6;
    border-radius: 8px;
    border-left: 3px solid #d1d5db;
    transition: background 0.25s ease, color 0.25s ease, border-left-color 0.25s ease;
    position: relative;
    cursor: default;
}
.po-active-meta--warning {
    color: #c2660a;
    background: #fff7ed;
    border-left-color: #f97316;
}
.po-active-meta--urgent {
    color: #dc2626;
    background: #fef2f2;
    border-left-color: #dc2626;
}
.po-active-meta--urgent::after {
    content: 'Your listing will expire soon';
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #1f2937;
    color: #fff;
    font-size: 11px;
    font-weight: 400;
    padding: 5px 10px;
    border-radius: 6px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
    z-index: 10;
}
.po-active-meta--urgent:hover::after {
    opacity: 1;
}
