/* ===========================
   LK (Personal Cabinet) Styles
   Shared across buyer, agent, developer
   =========================== */

*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #fff;
    color: #111827;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}


/* === Header === */

.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid #f0f0f0;
    height: 64px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 32px;
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-weight: 700;
    font-size: 16px;
    color: #111827;
    letter-spacing: -0.02em;
}

.header-nav {
    display: flex;
    gap: 28px;
}

.header-nav a {
    text-decoration: none;
    color: #6b7280;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s;
}

.header-nav a:hover {
    color: #111827;
}

.nav-accent {
    color: #E85C4A !important;
    font-weight: 600 !important;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.header-favorites,
.header-notif {
    color: #6b7280;
    transition: color 0.2s;
    position: relative;
}

.header-favorites:hover,
.header-notif:hover {
    color: #111827;
}

.notif-dot {
    position: absolute;
    top: -2px;
    right: -2px;
    width: 8px;
    height: 8px;
    background: #E85C4A;
    border-radius: 50%;
    border: 2px solid #fff;
}

.user-menu {
    display: flex;
    align-items: center;
    gap: 8px;
}

.user-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #E85C4A;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar.agent {
    background: #3b82f6;
}

.user-avatar.developer {
    background: #8b5cf6;
}

.user-name {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
}

.user-tag {
    font-size: 11px;
    font-weight: 500;
    color: #E85C4A;
    background: #fef2f0;
    padding: 2px 8px;
    border-radius: 4px;
}


/* === LK Layout === */

.lk-main {
    padding-top: 64px;
}

.lk-layout {
    display: grid;
    grid-template-columns: 260px 1fr;
    gap: 0;
    min-height: calc(100vh - 64px);
}


/* === Sidebar === */

.lk-sidebar {
    border-right: 1px solid #f0f0f0;
    padding: 32px 24px;
    background: #fafafa;
}

.lk-user-card {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.lk-user-avatar {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: #E85C4A;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lk-user-avatar.agent {
    background: #3b82f6;
}

.lk-user-avatar.developer {
    background: #8b5cf6;
}

.lk-user-info {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lk-user-name {
    font-size: 14px;
    font-weight: 600;
    color: #111827;
}

.lk-user-role {
    font-size: 12px;
    color: #9ca3af;
}

.verified {
    color: #059669;
    font-weight: 500;
}


/* === Agent Stats === */

.lk-agent-stats {
    display: flex;
    gap: 4px;
    margin-bottom: 24px;
    padding-bottom: 24px;
    border-bottom: 1px solid #f0f0f0;
}

.lk-stat-item {
    flex: 1;
    text-align: center;
    padding: 12px 8px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
}

.lk-stat-value {
    display: block;
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    letter-spacing: -0.02em;
}

.lk-stat-label {
    display: block;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 2px;
}


/* === Sidebar Nav === */

.lk-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lk-nav-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
    text-decoration: none;
    transition: all 0.2s;
}

.lk-nav-item:hover {
    background: #f3f4f6;
    color: #111827;
}

.lk-nav-item.active {
    background: #fef2f0;
    color: #E85C4A;
}

.lk-nav-item svg {
    flex-shrink: 0;
}

.lk-nav-badge {
    margin-left: auto;
    font-size: 12px;
    font-weight: 600;
    color: #9ca3af;
    background: #f3f4f6;
    padding: 1px 8px;
    border-radius: 10px;
}

.lk-nav-badge.accent {
    color: #E85C4A;
    background: #fef2f0;
}


/* === Content === */

.lk-content {
    padding: 32px;
}

.lk-content-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 24px;
}

.lk-content-header h1 {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.lk-count {
    font-size: 14px;
    color: #9ca3af;
}

.lk-btn-primary {
    background: #E85C4A;
    color: #fff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    font-family: inherit;
}

.lk-btn-primary:hover {
    background: #d44a3a;
}


/* === Filters === */

.lk-filters {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.lk-filter-btn {
    padding: 8px 16px;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    background: #fff;
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    cursor: pointer;
    transition: all 0.2s;
    font-family: inherit;
}

.lk-filter-btn:hover {
    border-color: #d1d5db;
    color: #111827;
}

.lk-filter-btn.active {
    background: #E85C4A;
    color: #fff;
    border-color: #E85C4A;
}


/* === Buyer: Property Cards Grid === */

.lk-cards-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.lk-property-card {
    border: 1px solid #f0f0f0;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lk-property-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

.lk-card-img {
    position: relative;
    height: 160px;
    overflow: hidden;
}

.lk-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.lk-property-card:hover .lk-card-img img {
    transform: scale(1.05);
}

.lk-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #E85C4A;
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 3px 8px;
    border-radius: 4px;
}

.lk-badge.green {
    background: #059669;
}

.lk-fav-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
}

.lk-fav-btn.active {
    color: #ef4444;
}

.lk-card-body {
    padding: 14px 16px;
}

.lk-card-price {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.lk-card-title {
    font-size: 13px;
    font-weight: 500;
    color: #6b7280;
    margin-bottom: 2px;
}

.lk-card-address {
    font-size: 12px;
    color: #9ca3af;
    margin-bottom: 6px;
}

.lk-card-meta {
    font-size: 11px;
    color: #9ca3af;
}


/* === Tabs === */

.lk-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 24px;
}

.lk-tab {
    padding: 12px 20px;
    border: none;
    background: none;
    font-size: 14px;
    font-weight: 500;
    color: #9ca3af;
    cursor: pointer;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
    font-family: inherit;
}

.lk-tab:hover {
    color: #6b7280;
}

.lk-tab.active {
    color: #E85C4A;
    border-bottom-color: #E85C4A;
}

.lk-tab span {
    font-size: 12px;
    margin-left: 4px;
    color: #9ca3af;
}

.lk-tab.active span {
    color: #E85C4A;
}


/* === Agent: Listing Rows === */

.lk-listings {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.lk-listing-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid #f5f5f5;
    transition: background 0.2s;
}

.lk-listing-row:first-child {
    border-top: 1px solid #f5f5f5;
}

.lk-listing-row:hover {
    background: #fafafa;
}

.lk-listing-img {
    width: 80px;
    height: 56px;
    border-radius: 8px;
    overflow: hidden;
    flex-shrink: 0;
}

.lk-listing-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lk-listing-info {
    flex: 1;
    min-width: 0;
}

.lk-listing-title {
    font-size: 14px;
    font-weight: 500;
    color: #111827;
    margin-bottom: 2px;
}

.lk-listing-addr {
    font-size: 12px;
    color: #9ca3af;
}

.lk-listing-price {
    font-size: 15px;
    font-weight: 700;
    letter-spacing: -0.02em;
    min-width: 120px;
}

.lk-listing-stats {
    display: flex;
    gap: 12px;
    min-width: 100px;
}

.lk-views,
.lk-contacts {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: #9ca3af;
}

.lk-listing-status {
    min-width: 80px;
}

.status-active {
    font-size: 12px;
    font-weight: 500;
    color: #059669;
    background: #f0fdf4;
    padding: 4px 10px;
    border-radius: 6px;
}

.lk-listing-promo {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 100px;
}

.promo-tag {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding: 3px 8px;
    border-radius: 4px;
    background: #f3f4f6;
    color: #6b7280;
}

.promo-tag.top {
    background: #E85C4A;
    color: #fff;
}

.promo-tag.premium {
    background: #fef3c7;
    color: #d97706;
}

.promo-days {
    font-size: 11px;
    color: #9ca3af;
}


/* === Developer: Project Cards === */

.lk-projects-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.lk-project-card {
    border: 1px solid #f0f0f0;
    border-radius: 14px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}

.lk-project-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.lk-project-card:first-child {
    grid-column: 1 / -1;
}

.lk-project-img {
    position: relative;
    height: 180px;
    overflow: hidden;
}

.lk-project-card:first-child .lk-project-img {
    height: 220px;
}

.lk-project-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.lk-project-card:hover .lk-project-img img {
    transform: scale(1.04);
}

.lk-project-status {
    position: absolute;
    top: 12px;
    left: 12px;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.lk-project-status.active {
    background: #059669;
    color: #fff;
}

.lk-project-status.soon {
    background: #f59e0b;
    color: #fff;
}

.lk-project-body {
    padding: 20px;
}

.lk-project-name {
    font-size: 18px;
    font-weight: 600;
    letter-spacing: -0.02em;
    margin-bottom: 4px;
}

.lk-project-addr {
    font-size: 13px;
    color: #9ca3af;
    margin-bottom: 16px;
}

.lk-project-meta-row {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
}

.lk-project-meta {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.lk-project-meta-val {
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
    color: #111827;
}

.lk-project-meta-label {
    font-size: 11px;
    color: #9ca3af;
}

.lk-project-progress {
    display: flex;
    align-items: center;
    gap: 12px;
}

.progress-bar {
    flex: 1;
    height: 6px;
    background: #f3f4f6;
    border-radius: 3px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: #E85C4A;
    border-radius: 3px;
    transition: width 0.6s ease;
}

.progress-text {
    font-size: 12px;
    color: #9ca3af;
    white-space: nowrap;
}
