.ks-chat {
    display: grid;
    grid-template-columns: 260px 1fr;
    min-height: 70vh;
    border-radius: 24px;
    overflow: hidden;
    background: #fff;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}
.ks-chat-people { background: #f8fafc; padding: 18px; display: flex; flex-direction: column; gap: 8px; max-height: 70vh; overflow: auto; }
.ks-chat-label { margin: 10px 4px 0; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; font-weight: 700; }
.ks-chat-people a { display: flex; flex-direction: column; padding: 10px 12px; border-radius: 14px; color: inherit; text-decoration: none; }
.ks-chat-people a.is-on, .ks-chat-people a:hover { background: #fff; box-shadow: 0 8px 18px rgba(15, 23, 42, 0.06); }
.ks-chat-people span, .ks-chat-room header span { color: #64748b; font-size: 12px; }
.ks-chat-room { display: flex; flex-direction: column; min-height: 70vh; }
.ks-chat-room header, .ks-chat-compose { padding: 14px 16px; display: flex; align-items: center; gap: 8px; }
.ks-chat-room header { justify-content: space-between; border-bottom: 1px solid #e2e8f0; }
.ks-chat-log { flex: 1; overflow: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: linear-gradient(180deg, #f8fbff, #fff); }
.ks-bubble { max-width: min(78%, 520px); padding: 10px 12px; border-radius: 16px; background: #e8eef8; }
.ks-bubble.is-mine { margin-left: auto; background: #1d4ed8; color: #fff; }
.ks-bubble p { margin: 4px 0 0; }
.ks-bubble img { max-width: 220px; border-radius: 12px; margin-top: 6px; }
.ks-bubble a { color: inherit; }
.ks-chat-compose { border-top: 1px solid #e2e8f0; }
.ks-chat-compose input[type="text"] { flex: 1; border: 0; border-radius: 999px; background: #f1f5f9; padding: 10px 14px; }
.ks-chat-compose button, .ks-chat-tool { border: 0; border-radius: 999px; background: #0f172a; color: #fff; padding: 8px 12px; font-weight: 700; cursor: pointer; }
.ks-attach { position: relative; }
.ks-attach-btn { width: 42px; height: 42px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.ks-attach.is-open .ks-attach-btn { background: #1d4ed8; }
.ks-attach-menu {
    position: absolute;
    right: 0;
    bottom: calc(100% + 10px);
    display: flex;
    gap: 6px;
    padding: 8px;
    border-radius: 18px;
    background: #fff;
    box-shadow: 0 16px 36px rgba(15, 23, 42, 0.16);
}
.ks-attach-menu[hidden] { display: none; }
.ks-chat-empty { margin: auto; color: #64748b; }
@media (max-width: 767px) {
    .ks-chat { grid-template-columns: 1fr; }
}
.ks-vdeck {
    position: relative;
    min-height: 230px;
    perspective: 900px;
}

.ks-wallet-unit { width: 100%; }
.ks-vcard {
    width: 100%;
    min-height: 190px;
    border-radius: 22px;
    padding: 20px 22px;
    color: #f8fbff;
    position: relative;
    overflow: hidden;
    box-shadow: 0 18px 40px rgba(15, 23, 42, 0.28);
    transition: transform 0.35s ease, opacity 0.35s ease;
}

.ks-vcard::before {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    right: -40px;
    top: -50px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.16);
}

.ks-vcard-usd {
    background: linear-gradient(145deg, #0f172a 0%, #1d4ed8 55%, #38bdf8 100%);
    z-index: 2;
}

.ks-vcard-fx {
    position: absolute;
    left: 16px;
    right: 0;
    width: auto;
    top: 16px;
    background: linear-gradient(145deg, #111827 0%, #6d28d9 60%, #f59e0b 140%);
    z-index: 1;
    transform: rotate(6deg) scale(0.94);
    opacity: 0.72;
}

.ks-vdeck.is-fx .ks-vcard-usd {
    transform: rotate(-6deg) scale(0.94);
    opacity: 0.72;
    z-index: 1;
}

.ks-vdeck.is-fx .ks-vcard-fx {
    transform: none;
    opacity: 1;
    z-index: 2;
}

.ks-vdeck.is-sliding.is-fx .ks-vcard-fx,
.ks-vdeck.is-sliding:not(.is-fx) .ks-vcard-usd {
    animation: ks-slide-in 0.48s cubic-bezier(0.2, 0.8, 0.2, 1);
}

@keyframes ks-slide-in {
    from { transform: translateX(84px); opacity: 0; }
    to { transform: none; opacity: 1; }
}

.ks-wallet-move {
    display: grid;
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: stretch;
    margin-top: 12px;
    width: 100%;
}

.ks-wallet-move label {
    grid-column: 1 / -1;
    font-size: 12px;
    font-weight: 700;
    color: #475569;
}

.ks-wallet-actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
}

.ks-wallet-move input {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    width: 100%;
    min-width: 0;
    background: #fff;
    box-shadow: inset 0 0 0 1px #e2e8f0;
}

.ks-wallet-move button {
    border: 0;
    border-radius: 999px;
    padding: 8px 14px;
    width: 100%;
    font-weight: 700;
    background: #0f172a;
    color: #fff;
}

.ks-wallet-move button[value="withdraw"] {
    background: #fff;
    color: #0f172a;
    box-shadow: inset 0 0 0 1px #cbd5e1;
}

.btn-outline-primary,
.btn-outline-secondary,
.btn-outline-danger,
.btn-outline-dark,
.btn-outline-success,
.btn-light {
    border-radius: 14px;
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.12);
}

.ks-stat-link {
    display: block;
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.ks-stat-link:hover .card {
    transform: translateY(-2px);
}

.ks-vchip {
    width: 42px;
    height: 30px;
    border-radius: 8px;
    background: linear-gradient(135deg, #fde68a, #d97706);
    margin-bottom: 28px;
}

.ks-vlabel {
    letter-spacing: 0.14em;
    text-transform: uppercase;
    font-size: 11px;
    opacity: 0.8;
}

.ks-vamount {
    font-size: 32px;
    font-weight: 750;
    letter-spacing: -0.04em;
    margin: 4px 0;
}

.ks-vmeta {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    opacity: 0.9;
}

.ks-vswitch {
    display: inline-flex;
    gap: 6px;
    margin-top: 14px;
    padding: 4px;
    border-radius: 999px;
    background: #e8eef8;
}

.ks-vswitch button {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 7px 14px;
    font-weight: 700;
}

.ks-vdeck:not(.is-fx) .ks-vswitch [data-side="usd"],
.ks-vdeck.is-fx .ks-vswitch [data-side="fx"] {
    background: #0f172a;
    color: #fff;
}

.card-body .ks-mod-table {
    width: max-content;
    max-width: 100%;
    margin-bottom: 0;
}

.card-body .ks-mod-table th,
.card-body .ks-mod-table td {
    padding: 12px 22px 12px 0;
    vertical-align: middle;
    white-space: nowrap;
}

.card-body .ks-mod-table td:first-child {
    white-space: normal;
    min-width: 180px;
}

.card-body .ks-mod-table td:last-child {
    white-space: normal;
}

.card-body .ks-mod-who {
    display: grid;
    grid-template-columns: repeat(3, 168px);
    column-gap: 14px;
    row-gap: 8px;
    align-items: center;
}

.card-body .ks-mod-who label {
    display: flex;
    align-items: center;
    margin: 0;
    min-height: 24px;
    font-weight: 500;
    white-space: nowrap;
    color: #334155;
}

.ks-period {
    display: flex;
    margin: 16px 16px 0 22px;
}

.ks-period-switch {
    display: inline-flex;
    gap: 4px;
    padding: 4px;
    border-radius: 999px;
    background: #e8eef8;
}

.ks-period-switch button {
    border: 0;
    background: transparent;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 13px;
    font-weight: 700;
    color: #475569;
    cursor: pointer;
}

.ks-period-switch button.is-on {
    background: #0f172a;
    color: #fff;
}

.ks-plan-group {
    margin: 0 12px 22px 22px;
}

.ks-plan-group-head h4 {
    margin: 0;
    font-size: 13px;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: #64748b;
}

.ks-plan-group-head p {
    margin: 4px 0 0;
    color: #94a3b8;
    font-size: 13px;
}

.ks-plans {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(288px, 1fr));
    gap: 17px;
    padding: 14px 0 0;
    align-items: stretch;
}

.ks-plan-group[data-audience="listing"] { --plan: #818cf8; }
.ks-plan-group[data-audience="manager"] { --plan: #38bdf8; }
.ks-plan-group[data-audience="worker"] { --plan: #2dd4bf; }
.ks-plan-group[data-audience="vendor"] { --plan: #fbbf24; }
.ks-plan-group[data-audience="general"] { --plan: #c4b5fd; }

.ks-plan {
    --plan: #818cf8;
    position: relative;
    border-radius: 26px;
    overflow: hidden;
    min-height: 0;
    display: flex;
    flex-direction: column;
    color: #e2e8f0;
    background:
        radial-gradient(120% 80% at 0% 0%, color-mix(in srgb, var(--plan) 28%, transparent), transparent 55%),
        linear-gradient(180deg, #161a2b 0%, #0c1020 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 14px 30px rgba(15, 23, 42, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.ks-plan-head {
    background: transparent;
    text-align: left;
    padding: 19px 19px 0;
    border-radius: 0;
    position: relative;
    z-index: 1;
}

.ks-plan-head h3 {
    margin: 0;
    letter-spacing: 0.14em;
    font-size: 18px;
    color: #fff !important;
}

.ks-plan-head p {
    margin: 7px 0 0;
    color: var(--plan);
    font-size: 14px;
}

.ks-plan-price {
    margin: 14px 0 0;
    font-size: 46px;
    font-weight: 750;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #fff;
}

.ks-plan-price span {
    font-size: 15px;
    letter-spacing: 0.08em;
    margin-left: 4px;
    color: #94a3b8;
}

.ks-plan-body {
    background: transparent;
    margin-top: 0;
    padding: 14px 19px 17px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.ks-plan-body ul {
    list-style: none;
    margin: 0 0 14px;
    padding: 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 12px;
}

.ks-plan-body li {
    display: flex;
    gap: 7px;
    align-items: flex-start;
    margin: 0;
    font-size: 16px;
    line-height: 1.35;
}

.ks-plan-buy {
    margin-top: auto;
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 41px;
    padding: 7px 17px;
    border-radius: 999px;
    background: #1e293b;
    background: color-mix(in srgb, var(--plan) 22%, #0f172a);
    color: #fff !important;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    border: 1px solid color-mix(in srgb, var(--plan) 55%, transparent);
}

.ks-plan-tools {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    gap: 10px;
    margin-top: 12px;
}

.ks-plan-tools form,
.ks-plan-trial { margin: 0; }

.ks-plan-tools a,
.ks-plan-delete {
    border: 0;
    background: rgba(255, 255, 255, 0.08);
    color: #e2e8f0 !important;
    text-decoration: none;
    border-radius: 999px;
    padding: 5px 12px;
    font-size: 14px;
    font-weight: 650;
    cursor: pointer;
}

.ks-plan-delete { color: #fecaca !important; }

@media (max-width: 991px) {
    .ks-plans { grid-template-columns: 1fr; }
    .ks-plan { min-height: 0; }
}

.ks-hire-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin: 12px 0;
}

.ks-hire-icons button,
.ks-hire-icons a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #dbe3f0;
    background: #fff;
    border-radius: 999px;
    padding: 8px 12px;
    color: #0f172a;
    text-decoration: none;
}

.ks-hire-icons .is-on {
    background: #0f172a;
    color: #fff;
    border-color: #0f172a;
}

.ks-hire-icons i {
    font-size: 18px;
    line-height: 1;
    width: 18px;
    text-align: center;
}

.ks-install {
    position: fixed !important;
    left: 12px;
    right: 12px;
    bottom: 108px;
    z-index: 1100;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    align-items: center;
    width: min(440px, calc(100% - 24px));
    max-height: none;
    overflow: visible;
    background: #fff;
    border-radius: 18px;
    padding: 12px;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.16);
}

.ks-install img {
    width: 42px !important;
    height: 42px !important;
    max-width: 42px;
    object-fit: contain;
    border-radius: 10px;
    flex: 0 0 42px;
}

.ks-install-copy { flex: 1 1 180px; min-width: 0; }
.ks-install p { margin: 2px 0 0; color: #64748b; font-size: 13px; }
.ks-install[hidden] { display: none !important; }
.ks-install-actions {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    gap: 8px;
    flex: 1 1 auto;
}
.ks-install-actions button,
#ksInstallGo,
#ksInstallHide {
    flex: 0 1 auto;
    width: auto;
    min-height: 0;
    height: auto;
    border: 0;
    border-radius: 999px;
    padding: 6px 12px;
    font-weight: 700;
    font-size: 13px;
    line-height: 1.2;
    cursor: pointer;
}
#ksInstallGo { background: #1d6fe8; color: #fff; }
#ksInstallHide {
    background: #f2f2f5;
    color: #1d1d1f;
}
@media (max-width: 640px) {
    .ks-install { bottom: 108px; width: auto; }
    .ks-install-actions { flex-direction: row; }
    .ks-install-actions button,
    #ksInstallGo,
    #ksInstallHide { width: auto; }
}
@media (max-width: 767px) {
    .ks-stack-sm { display: flex; flex-direction: column; gap: 8px; }
    .ks-stack-sm .btn, .ks-stack-sm button, .ks-stack-sm a.btn { width: 100%; min-height: 44px; }
}

.ks-house-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.ks-mate { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: 18px; background: #f8fafc; }
.ks-mate strong { font-size: 15px; }
.ks-mate span, .ks-issue small { color: #64748b; }
.ks-issue { padding: 14px 0; border-bottom: 1px solid #e2e8f0; }
.ks-issue:last-child { border-bottom: 0; }
.ks-vote { display: flex; gap: 8px; margin-top: 8px; }
.ks-vote button { border: 0; border-radius: 999px; padding: 6px 12px; background: #e2e8f0; font-weight: 700; }
.ks-vote button.is-on { background: #1d4ed8; color: #fff; }
.ks-shot { width: 72px; height: 72px; object-fit: cover; border-radius: 12px; }
