/* RentStac Demo - Interactive Real Estate Platform Styles */

:root {
    --primary-color: #FF6B35;
    --primary-dark: #E55A2B;
    --primary-light: #FF8558;
    --secondary-color: #004E89;
    --success-color: #10B981;
    --warning-color: #F59E0B;
    --danger-color: #EF4444;
    --info-color: #3B82F6;
    
    --bg-primary: #0A0E27;
    --bg-secondary: #131730;
    --bg-tertiary: #1A1F3A;
    --bg-card: #1E2442;
    --bg-card-hover: #252B4D;
    
    --text-primary: #FFFFFF;
    --text-secondary: #94A3B8;
    --text-muted: #64748B;
    
    --border-color: #2D3458;
    --border-light: #3A4266;
    
    --gradient-primary: linear-gradient(135deg, #FF6B35 0%, #E55A2B 100%);
    --gradient-secondary: linear-gradient(135deg, #004E89 0%, #003A66 100%);
    --gradient-success: linear-gradient(135deg, #10B981 0%, #059669 100%);
    
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.2);
    --shadow-md: 0 2px 8px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.4);
    
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-xl: 10px;
    
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.marketplace-tab {
    border-bottom: 2px solid transparent !important;
}

.marketplace-tab.active {
    color: var(--text-secondary) !important;
    background: rgba(var(--primary-rgb), 0.1) !important;
    border-bottom: 2px solid var(--primary-color) !important;
}

.marketplace-tab:hover {
    color: var(--text-secondary) !important;
    background: rgba(var(--primary-rgb), 0.05) !important;
}

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

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.4;
    overflow-x: hidden;
    font-size: 13px;
}

/* Header */
.demo-header {
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
}

.header-container {
    max-width: 1800px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
}

.logo-section {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    color: var(--text-primary);
    font-weight: 700;
    font-size: 1rem;
}

.logo img {
    width: 28px;
    height: 28px;
    border-radius: 50%;
}

.demo-badge {
    background: var(--gradient-primary);
    padding: 0.2rem 0.6rem;
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 700;
    letter-spacing: 0.05em;
}

.main-nav {
    display: flex;
    gap: 0.5rem;
    flex: 1;
}

.desktop-nav {
    display: flex;
}

.mobile-bottom-nav {
    display: none;
}

.nav-link {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.4rem 0.75rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8125rem;
    transition: var(--transition);
    white-space: nowrap;
}

.nav-link:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.nav-link.active {
    background: var(--bg-card);
    color: var(--primary-color);
}

.nav-link svg {
    width: 14px;
    height: 14px;
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

.wallet-info {
    display: flex;
    gap: 1.5rem;
}

.wallet-balance {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.balance-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.balance-amount {
    font-size: 0.875rem;
    font-weight: 700;
    color: var(--text-primary);
}

.wallet-dropdown-container {
    position: relative;
}

.btn-connect-wallet {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.375rem 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.8125rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-connect-wallet i {
    width: 16px;
    height: 16px;
}

.btn-connect-wallet:hover {
    background: var(--bg-card);
    border-color: var(--border-light);
    color: var(--text-primary);
}

.wallet-dropdown {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    min-width: 200px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.2s ease-out;
    z-index: 1000;
}

.wallet-dropdown.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.wallet-dropdown a {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    color: var(--text-secondary);
    text-decoration: none;
    font-size: 0.875rem;
    transition: var(--transition);
    border-bottom: 1px solid var(--border-color);
}

.wallet-dropdown a:last-child {
    border-bottom: none;
}

.wallet-dropdown a:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.wallet-dropdown a i {
    width: 16px;
    height: 16px;
}


/* Main Content */
.demo-content {
    max-width: 1800px;
    margin: 0 auto;
    padding: 1rem;
}

.view-section {
    display: none;
    animation: fadeIn 0.3s ease-out;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.view-header {
    margin-bottom: 0.75rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--border-color);
}

.view-header h1 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.125rem;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.view-header p {
    color: var(--text-muted);
    font-size: 0.75rem;
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.stat-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.65rem 0.75rem;
    display: flex;
    align-items: center;
    gap: 0.625rem;
    transition: var(--transition);
}

.stat-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.stat-icon {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 20px;
    height: 20px;
    color: white;
}

.stat-content {
    flex: 1;
}

.stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
}

.stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.stat-change {
    font-size: 0.75rem;
    font-weight: 600;
    margin-top: 0.125rem;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.negative {
    color: var(--danger-color);
}

/* Charts */
.charts-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.chart-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
}

.chart-card canvas {
    max-height: 160px;
    height: 160px !important;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.625rem;
}

.chart-header h3 {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.chart-period {
    display: flex;
    gap: 0.5rem;
}

.period-btn {
    padding: 0.25rem 0.5rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.6875rem;
    cursor: pointer;
    transition: var(--transition);
}

.period-btn:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.period-btn.active {
    background: var(--gradient-primary);
    border-color: var(--primary-color);
    color: white;
}

/* Section Card */
.section-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    margin-bottom: 1rem;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.section-header h2 {
    font-size: 1rem;
    font-weight: 600;
}

/* Portfolio Table */
.portfolio-table {
    width: 100%;
    border-radius: var(--radius-sm);
    overflow: hidden;
}

.portfolio-table thead,
.portfolio-table tbody {
    display: table;
    width: 100%;
    table-layout: fixed;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 0.8fr 1.2fr 0.8fr;
    gap: 0.75rem;
    padding: 0.5rem 0.75rem;
    background: var(--bg-tertiary);
    border-bottom: 1px solid var(--border-color);
    font-size: 0.6875rem;
    font-weight: 600;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr 0.8fr 1.2fr 0.8fr;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid var(--border-color);
    align-items: center;
    transition: var(--transition);
    cursor: pointer;
}

.table-row:hover {
    background: var(--bg-card-hover);
}

.table-row:last-child {
    border-bottom: none;
}

.td-property {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.property-mini-img {
    width: 40px;
    height: 40px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    flex-shrink: 0;
    background: var(--bg-tertiary);
}

.property-mini-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    image-rendering: -webkit-optimize-contrast;
}

.property-mini-info {
    flex: 1;
    min-width: 0;
}

.property-mini-name {
    font-weight: 600;
    font-size: 0.8125rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-bottom: 0.2rem;
}

.property-mini-location {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.75rem;
    color: var(--text-muted);
}

.property-mini-location svg {
    width: 12px;
    height: 12px;
}

.td-invested,
.td-current,
.td-yield {
    font-size: 0.8125rem;
    font-weight: 600;
    color: var(--text-primary);
}

.td-gain {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.gain-amount {
    font-size: 0.8125rem;
    font-weight: 600;
}

.gain-percent {
    font-size: 0.75rem;
    font-weight: 500;
}

.td-gain.positive .gain-amount,
.td-gain.positive .gain-percent {
    color: var(--success-color);
}

.td-gain.negative .gain-amount,
.td-gain.negative .gain-percent {
    color: var(--danger-color);
}

.td-share {
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.share-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 3px;
    overflow: hidden;
}

.share-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 3px;
    transition: width 0.3s ease;
}

.share-text {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
}

.td-actions {
    display: flex;
    gap: 0.375rem;
    justify-content: flex-end;
}

.btn-table-action {
    width: 28px;
    height: 28px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    color: var(--text-secondary);
}

.btn-table-action:hover {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.btn-table-action svg {
    width: 14px;
    height: 14px;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: var(--transition);
}

.view-all:hover {
    color: var(--primary-light);
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 2.5rem 1.5rem;
}

.empty-state svg {
    width: 48px;
    height: 48px;
    color: var(--text-muted);
    margin-bottom: 0.75rem;
}

.empty-state h3 {
    font-size: 1.125rem;
    margin-bottom: 0.375rem;
}

.empty-state p {
    color: var(--text-secondary);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary,
.btn-secondary,
.btn-danger,
.btn-success {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.5rem 1rem;
    border: none;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
}

.btn-primary {
    background: var(--gradient-primary);
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-secondary {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    color: var(--text-primary);
}

.btn-secondary:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.btn-success {
    background: var(--gradient-success);
    color: white;
}

.btn-danger {
    background: var(--danger-color);
    color: white;
}

/* Marketplace Filters */
.marketplace-filters {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 0.625rem 0.75rem;
    margin-bottom: 0.75rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    align-items: center;
}

.filter-group {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.filter-group label {
    font-size: 0.6875rem;
    font-weight: 500;
    color: var(--text-muted);
    white-space: nowrap;
}

.search-input {
    position: relative;
}

.search-input svg {
    position: absolute;
    left: 0.625rem;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    color: var(--text-muted);
}

.search-input input,
.filter-group select {
    width: auto;
    min-width: 140px;
    padding: 0.375rem 0.625rem;
    padding-left: 2rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    font-size: 0.75rem;
    transition: var(--transition);
}

.filter-group select {
    padding-left: 0.625rem;
    min-width: 120px;
}

.search-input input:focus,
.filter-group select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: var(--bg-card);
}

.btn-reset-filters {
    padding: 0.375rem 0.625rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-weight: 500;
    font-size: 0.75rem;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: auto;
}

.btn-reset-filters:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

/* Properties Grid */
.properties-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

@media (max-width: 1400px) {
    .properties-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 1024px) {
    .properties-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

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

/* Pagination */
.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 1rem;
    margin-top: 0.5rem;
}

.pagination-btn {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-primary);
    cursor: pointer;
    transition: var(--transition);
}

.pagination-btn:hover:not(:disabled) {
    background: var(--bg-tertiary);
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.pagination-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-info {
    font-size: 0.8125rem;
    color: var(--text-secondary);
    font-weight: 500;
}

.property-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--border-light);
}

.property-image {
    position: relative;
    height: 160px;
    overflow: hidden;
    background: var(--bg-tertiary);
}

.property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

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

.property-badge {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: var(--gradient-primary);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 700;
}

.property-status {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    padding: 0.25rem 0.625rem;
    background: var(--bg-secondary);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-sm);
    font-size: 0.75rem;
    font-weight: 600;
}

.property-content {
    padding: 0.75rem;
}

.property-header {
    margin-bottom: 0.625rem;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 0.375rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    margin-bottom: 0.375rem;
}

.property-location svg {
    width: 14px;
    height: 14px;
}

.property-title {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.375rem;
    line-height: 1.3;
}

.property-type {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.property-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    padding: 0.75rem 0;
    border-top: 1px solid var(--border-color);
    border-bottom: 1px solid var(--border-color);
}

.metric {
    text-align: center;
}

.metric-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-bottom: 0.125rem;
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.metric-value {
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.2;
}

.metric-value.highlight {
    color: var(--success-color);
}

.property-footer {
    margin-top: 0.75rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-price {
    display: flex;
    flex-direction: column;
}

.price-label {
    font-size: 0.625rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.025em;
}

.price-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.btn-invest {
    padding: 0.5rem 1rem;
    background: var(--gradient-primary);
    border: none;
    border-radius: var(--radius-sm);
    color: white;
    font-weight: 600;
    font-size: 0.875rem;
    cursor: pointer;
    transition: var(--transition);
}

.btn-invest:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

/* Progress Bar */
.progress-section {
    margin-top: 0.75rem;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.375rem;
}

.progress-label {
    font-size: 0.75rem;
    color: var(--text-secondary);
}

.progress-value {
    font-size: 0.75rem;
    font-weight: 700;
}

.progress-bar {
    width: 100%;
    height: 6px;
    background: var(--bg-tertiary);
    border-radius: 999px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: var(--gradient-primary);
    border-radius: 999px;
    transition: width 0.3s ease;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    animation: fadeIn 0.2s ease;
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(10, 14, 39, 0.8);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    max-width: 800px;
    max-height: 85vh;
    width: 90%;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    z-index: 1;
}

.modal-close {
    position: absolute;
    top: 0.75rem;
    right: 0.75rem;
    width: 28px;
    height: 28px;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
    z-index: 2;
}

.modal-close:hover {
    background: var(--bg-card-hover);
    transform: rotate(90deg);
}

.modal-close svg {
    width: 14px;
    height: 14px;
}

/* Staking */
.staking-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.staking-pools {
    display: grid;
    gap: 1rem;
}

.staking-pool {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: var(--transition);
}

.staking-pool:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.pool-info {
    flex: 1;
}

.pool-name {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.pool-details {
    display: flex;
    gap: 2rem;
    margin-top: 1rem;
}

.pool-detail {
    display: flex;
    flex-direction: column;
}

.pool-detail-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.pool-detail-value {
    font-size: 1rem;
    font-weight: 700;
}

/* Governance */
.governance-stats {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.proposals-list {
    display: grid;
    gap: 1rem;
}

.proposal-card {
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    transition: var(--transition);
}

.proposal-card:hover {
    background: var(--bg-card-hover);
    border-color: var(--border-light);
}

.proposal-header {
    display: flex;
    justify-content: space-between;
    align-items: start;
    margin-bottom: 1rem;
}

.proposal-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.proposal-meta {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.proposal-status {
    padding: 0.5rem 1rem;
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.proposal-status.active {
    background: var(--success-color);
    color: white;
}

.proposal-status.pending {
    background: var(--warning-color);
    color: white;
}

.proposal-status.closed {
    background: var(--text-muted);
    color: white;
}

.proposal-description {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.vote-results {
    margin: 1rem 0;
}

.vote-option {
    margin-bottom: 0.75rem;
}

.vote-option-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
}

.vote-option-label {
    font-size: 0.875rem;
    font-weight: 600;
}

.vote-option-value {
    font-size: 0.875rem;
    color: var(--text-muted);
}

.proposal-actions {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

/* Activity List */
.activity-list {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.activity-item {
    display: grid;
    grid-template-columns: auto 1fr auto;
    align-items: center;
    gap: 0.75rem;
    padding: 0.625rem 0.75rem;
    background: transparent;
    border: none;
    border-bottom: 1px solid var(--border-color);
    transition: var(--transition);
}

.activity-item:last-child {
    border-bottom: none;
}

.activity-item:hover {
    background: var(--bg-tertiary);
}

.activity-icon {
    width: 32px;
    height: 32px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.activity-icon.purchase {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

.activity-icon.payout {
    background: rgba(255, 107, 53, 0.15);
    color: var(--primary-color);
}

.activity-icon.stake {
    background: rgba(0, 78, 137, 0.15);
    color: var(--secondary-color);
}

.activity-icon.unstake {
    background: rgba(59, 130, 246, 0.15);
    color: var(--info-color);
}

.activity-icon.vote {
    background: rgba(245, 158, 11, 0.15);
    color: var(--warning-color);
}

.activity-icon svg {
    width: 16px;
    height: 16px;
}

.activity-content {
    flex: 1;
    min-width: 0;
}

.activity-title {
    font-weight: 500;
    font-size: 0.8125rem;
    margin-bottom: 0.125rem;
    color: var(--text-primary);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.activity-time {
    font-size: 0.6875rem;
    color: var(--text-muted);
}

.activity-amount {
    font-weight: 600;
    font-size: 0.8125rem;
    white-space: nowrap;
    color: var(--text-primary);
}

/* Property Detail Page */
.property-detail-container {
    max-width: 1600px;
    margin: 0 auto;
}

.detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid var(--border-color);
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    background: transparent;
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    color: var(--text-secondary);
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--bg-tertiary);
    color: var(--text-primary);
}

.btn-back svg {
    width: 16px;
    height: 16px;
}

.detail-actions {
    display: flex;
    gap: 0.75rem;
}

.detail-actions button {
    font-size: 0.8125rem;
    padding: 0.5rem;
}

.detail-actions button svg,
.detail-actions button i {
    width: 14px;
    height: 14px;
}

.detail-content {
    display: grid;
    grid-template-columns: 1fr 320px;
    gap: 1.5rem;
}

.detail-main {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.detail-gallery {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.gallery-main {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-bottom: 1rem;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumbs {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 0.75rem;
}

.gallery-thumbs img {
    width: 100%;
    height: 80px;
    object-fit: cover;
    border-radius: var(--radius-sm);
    cursor: pointer;
    transition: var(--transition);
    border: 2px solid transparent;
}

.gallery-thumbs img:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.detail-info {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1.5rem;
}

.detail-info h2 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.detail-title-section {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-title-section h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.5rem 0;
    color: var(--text-primary);
}

.detail-location {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.875rem;
}

.detail-location svg {
    width: 16px;
    height: 16px;
}

.detail-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-stat {
    text-align: center;
}

.detail-stat .stat-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: 0.25rem;
}

.detail-stat .stat-value {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-stat .stat-value.highlight {
    color: var(--success-color);
}

.detail-progress {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.progress-info {
    display: flex;
    justify-content: space-between;
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-top: 0.5rem;
}

.detail-description {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.detail-description p {
    color: var(--text-secondary);
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.detail-highlights {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.highlights-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.highlight-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
}

.highlight-item svg {
    width: 24px;
    height: 24px;
    color: var(--primary-color);
    flex-shrink: 0;
}

.highlight-label {
    font-size: 0.75rem;
    color: var(--text-muted);
}

.highlight-value {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
}

.detail-kpis {
    margin-bottom: 1.5rem;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--border-color);
}

.kpis-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.kpi-card {
    background: var(--bg-tertiary);
    padding: 0.75rem;
    border-radius: var(--radius-sm);
    text-align: center;
}

.kpi-label {
    font-size: 0.6875rem;
    color: var(--text-muted);
    margin-bottom: 0.375rem;
}

.kpi-value {
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
}

.detail-documents h2 {
    margin-bottom: 0.75rem;
}

.documents-list {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.document-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--bg-tertiary);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-primary);
    transition: var(--transition);
}

.document-item:hover {
    background: var(--bg-secondary);
    border-color: var(--primary-color);
}

.document-item svg {
    width: 20px;
    height: 20px;
    color: var(--primary-color);
}

.document-type {
    margin-left: auto;
    font-size: 0.75rem;
    color: var(--text-muted);
    font-weight: 600;
}

.detail-sidebar {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.sidebar-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    padding: 1rem;
}

.sidebar-card h3 {
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1rem;
    color: var(--text-primary);
}

.summary-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.summary-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.875rem;
}

.summary-item span {
    color: var(--text-secondary);
}

.summary-item strong {
    color: var(--text-primary);
    font-weight: 600;
}

.summary-item strong.highlight {
    color: var(--success-color);
}

.btn-block {
    width: 100%;
}

.property-type-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-primary);
    text-transform: capitalize;
}

.status-badge {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--bg-tertiary);
    border-radius: var(--radius-sm);
    font-size: 0.875rem;
    font-weight: 600;
}

.status-badge.active {
    background: rgba(16, 185, 129, 0.15);
    color: var(--success-color);
}

/* Responsive */
@media (max-width: 1200px) {
    .header-container {
        flex-wrap: wrap;
    }
    
    .main-nav {
        order: 3;
        width: 100%;
        overflow-x: auto;
    }
}

@media (max-width: 768px) {
    .demo-header {
        position: relative;
        border-bottom: none;
    }
    
    .header-container {
        padding: 0.625rem 0.75rem;
        gap: 0.75rem;
    }
    
    .logo-section {
        gap: 0.5rem;
        flex: 1;
    }
    
    .logo {
        font-size: 0.875rem;
    }
    
    .logo img {
        width: 24px;
        height: 24px;
    }
    
    .demo-badge {
        padding: 0.15rem 0.4rem;
        font-size: 0.5625rem;
    }
    
    .header-actions {
        gap: 0.5rem;
    }
    
    .btn-connect-wallet {
        padding: 0.4rem 0.625rem;
        font-size: 0.75rem;
    }
    
    .btn-connect-wallet span#walletDisplay {
        max-width: 70px;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    /* Hide desktop nav */
    .desktop-nav {
        display: none !important;
    }
    
    /* Show mobile bottom navigation */
    .mobile-bottom-nav {
        display: flex !important;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        background: var(--bg-secondary);
        border-top: 1px solid var(--border-color);
        padding: 0.5rem 0.75rem;
        justify-content: space-around;
        gap: 0;
        z-index: 1000;
        box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.1);
    }
    
    .mobile-bottom-nav .nav-link {
        flex-direction: column;
        padding: 0.375rem 0.25rem;
        font-size: 0.625rem;
        gap: 0.2rem;
        flex: 1;
        max-width: 80px;
        justify-content: center;
        text-align: center;
    }
    
    .mobile-bottom-nav .nav-link span {
        display: block;
        line-height: 1.1;
    }
    
    .mobile-bottom-nav .nav-link svg {
        width: 18px;
        height: 18px;
    }
    
    /* Marketplace tabs mobile */
    .marketplace-tabs {
        gap: 0.25rem !important;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .marketplace-tabs::-webkit-scrollbar {
        display: none;
    }
    
    .marketplace-tab {
        padding: 0.5rem 0.625rem !important;
        font-size: 0.75rem !important;
        white-space: nowrap;
        flex-shrink: 0;
    }
    
    .marketplace-tab i {
        width: 12px !important;
        height: 12px !important;
    }
    
    /* Add padding to content to avoid bottom nav overlap */
    .demo-content {
        padding: 1rem 1rem 5rem 1rem;
    }
    
    footer {
        margin-bottom: 4.5rem !important;
    }
    
    .view-header h1 {
        font-size: 1.5rem;
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }
    
    .stats-grid[style*="repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    .stat-card {
        padding: 0.5rem 0.625rem;
        gap: 0.5rem;
    }
    
    .stat-icon {
        width: 32px;
        height: 32px;
    }
    
    .stat-icon svg {
        width: 16px;
        height: 16px;
    }
    
    .stat-label {
        font-size: 0.6875rem;
    }
    
    .stat-value {
        font-size: 1rem;
    }
    
    .stat-change {
        font-size: 0.6875rem;
    }
    
    .charts-grid {
        grid-template-columns: 1fr;
    }
    
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .marketplace-filters {
        flex-direction: column;
        gap: 0.625rem;
        padding: 0.75rem;
    }
    
    .filter-group {
        width: 100%;
    }
    
    .filter-group label,
    .filter-label {
        display: flex;
        align-items: center;
        gap: 0.375rem;
        font-size: 0.75rem;
        margin-bottom: 0.375rem;
    }
    
    .filter-group select,
    .filter-group input {
        width: 100%;
        font-size: 0.8125rem;
    }
    
    .btn-reset-filters {
        width: 100%;
        justify-content: center;
        font-size: 0.8125rem;
    }
    
    /* Property detail mobile */
    .detail-content {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .detail-sidebar {
        order: 1;
    }
    
    .detail-main {
        gap: 1rem;
        order: 0;
    }
    
    .detail-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .detail-actions {
        width: 100%;
        flex-wrap: wrap;
        gap: 0.5rem;
    }
    
    .detail-actions .btn-secondary,
    .detail-actions .btn-primary,
    .detail-actions .btn-danger {
        flex: 1 1 calc(50% - 0.25rem);
        min-width: 0;
        font-size: 0.75rem;
        padding: 0.5rem 0.375rem;
        white-space: nowrap;
    }
    
    .btn-back {
        font-size: 0.8125rem;
        padding: 0.5rem 0.75rem;
    }
    
    .detail-gallery {
        padding: 0.75rem;
    }
    
    .gallery-main {
        height: 250px;
    }
    
    .gallery-thumbnails {
        gap: 0.375rem;
    }
    
    .gallery-thumb {
        height: 60px;
    }
    
    .detail-info,
    .detail-stats,
    .detail-description,
    .detail-metrics,
    .detail-kpis,
    .detail-documents,
    .sidebar-card {
        padding: 0.75rem;
    }
    
    /* Secondary market mobile */
    .secondary-listing-card {
        margin-bottom: 1rem !important;
        padding: 0.75rem !important;
        overflow: hidden;
    }
    
    .secondary-listing-card > div {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    .secondary-listing-card img {
        width: 100% !important;
        max-width: 100% !important;
        height: 180px !important;
        object-fit: cover;
    }
    
    .secondary-listing-card div[style*="grid-template-columns: repeat(5"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .secondary-listing-card div[style*="grid-template-columns: repeat(5"] > div {
        padding: 0.375rem !important;
        background: var(--bg-tertiary);
        border-radius: var(--radius-xs);
    }
    
    .secondary-listing-card div[style*="grid-template-columns: repeat(5"] > div > div:first-child {
        font-size: 0.6875rem !important;
        white-space: nowrap;
    }
    
    .secondary-listing-card div[style*="grid-template-columns: repeat(5"] > div > div:last-child {
        font-size: 0.8125rem !important;
    }
    
    .secondary-listing-card > div > div:last-child {
        width: 100% !important;
        flex-direction: row !important;
        gap: 0.5rem !important;
        min-width: auto !important;
    }
    
    .secondary-listing-card > div > div:last-child button {
        flex: 1 !important;
        font-size: 0.75rem !important;
        padding: 0.5rem 0.375rem !important;
    }
    
    /* Secondary market modal mobile */
    #propertyModalContent > div {
        padding: 1rem !important;
    }
    
    #propertyModalContent > div > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    #propertyModalContent img {
        height: 200px !important;
    }
    
    #propertyModalContent div[style*="grid-template-columns: repeat(4"] {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    #propertyModalContent div[style*="grid-template-columns: 1fr 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    #propertyModalContent button {
        font-size: 0.75rem !important;
        padding: 0.5rem !important;
    }
    
    /* ETF cards mobile */
    .etf-card > div {
        grid-template-columns: 1fr !important;
        gap: 0 !important;
    }
    
    .etf-card img {
        height: 200px !important;
    }
    
    .etf-card > div > div:nth-child(2) {
        padding: 1rem !important;
    }
    
    .etf-card > div > div:nth-child(2) > div:nth-child(2) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .etf-card > div > div:nth-child(3) {
        border-left: none !important;
        border-top: 1px solid var(--border-color) !important;
        padding: 1rem !important;
        flex-direction: row !important;
        min-width: unset !important;
    }
    
    /* ETF detail modal mobile */
    .etf-card + div #propertyModalContent > div > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .etf-card + div #propertyModalContent > div > div:first-child > div:first-child {
        order: 0 !important;
    }
    
    .etf-card + div #propertyModalContent > div > div:first-child > div:last-child {
        order: 1 !important;
    }
    
    .etf-card + div #propertyModalContent img {
        height: 200px !important;
    }
    
    .etf-card + div #propertyModalContent div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    /* ETF purchase modal mobile */
    #purchaseModalContent > div > div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    #purchaseModalContent div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    /* Escrow pool cards mobile */
    .escrow-pool-card > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .escrow-pool-card img {
        height: 200px !important;
        width: 100% !important;
    }
    
    .escrow-pool-card > div:first-child > div:nth-child(2) > div:nth-child(3) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem !important;
    }
    
    .escrow-pool-card > div:first-child > div:last-child {
        flex-direction: row !important;
        min-width: unset !important;
    }
    
    /* Escrow detail modal mobile */
    #propertyModalContent > div > div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    #propertyModalContent > div > div > div[style*="grid-template-columns: repeat(3"] {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    /* My Properties cards mobile */
    .property-card {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .property-card img {
        width: 100% !important;
        height: 200px !important;
    }
    
    .property-card > div:nth-child(2) > div:nth-child(2),
    .property-card > div:nth-child(2) > div:nth-child(3) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .property-card > div:last-child {
        border-left: none !important;
        border-top: 1px solid var(--border-color) !important;
        padding: 1rem !important;
        flex-direction: column !important;
        min-width: unset !important;
    }
    
    /* Staking stats mobile */
    .staking-stats {
        grid-template-columns: repeat(2, 1fr) !important;
    }
    
    /* Staking pool cards mobile */
    .staking-pools > div > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .staking-pools img {
        width: 100% !important;
        height: 200px !important;
    }
    
    .staking-pools > div > div:first-child > div:nth-child(2) > div:nth-child(2) {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.5rem !important;
    }
    
    .staking-pools > div > div:first-child > div:last-child {
        flex-direction: column !important;
        min-width: unset !important;
    }
    
    /* Staking modal mobile */
    #stakingModalContent > div > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 0.5rem !important;
    }
    
    #stakingModalContent div[style*="grid-template-columns: repeat(2"] {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
    }
    
    /* Governance stats mobile */
    .governance-stats {
        grid-template-columns: 1fr !important;
        gap: 0.75rem !important;
        margin-bottom: 1rem !important;
    }
    
    /* Governance proposal cards mobile */
    .proposals-list > div {
        flex-direction: column !important;
        gap: 1rem !important;
    }
    
    .proposals-list > div > div:nth-child(2) {
        border-left: none !important;
        border-top: 1px solid var(--border-color) !important;
        padding-left: 0 !important;
        padding-top: 1rem !important;
        min-width: unset !important;
    }
    
    .proposals-list div[style*="grid-template-columns: 1fr 1fr"] {
        grid-template-columns: 1fr !important;
        gap: 1rem !important;
    }
    
    .wallet-info {
        display: none;
    }
    
    .modal-content {
        width: 95%;
        max-height: 95vh;
    }
    
    /* Footer mobile styles */
    footer > div {
        padding: 0 1rem !important;
    }
    
    footer > div > div:first-child {
        grid-template-columns: 1fr !important;
        gap: 1.5rem !important;
    }
    
    footer h3 {
        font-size: 0.875rem !important;
    }
    
    footer p,
    footer a,
    footer button {
        font-size: 0.75rem !important;
    }
    
    footer > div > div:last-child {
        flex-direction: column !important;
        gap: 0.5rem !important;
        text-align: center;
    }
    
    /* Section headers mobile */
    .section-header {
        flex-direction: column;
        gap: 0.75rem;
        align-items: flex-start !important;
    }
    
    .section-header h2 {
        font-size: 1rem !important;
    }
    
    .section-header button {
        width: 100%;
        justify-content: center;
        font-size: 0.8125rem !important;
        padding: 0.625rem !important;
    }
    
    .section-actions {
        width: 100%;
        flex-direction: column !important;
        gap: 0.5rem !important;
    }
    
    .section-actions .filter-group {
        width: 100%;
    }
    
    .section-title {
        font-size: 1rem !important;
    }
    
    /* Portfolio table - hide on mobile, show cards instead */
    .portfolio-table .table-header {
        display: none;
    }
    
    .portfolio-table .table-row {
        display: flex;
        flex-direction: column;
        gap: 0.375rem;
        padding: 0.625rem;
        background: var(--bg-tertiary);
        border-radius: var(--radius-sm);
        margin-bottom: 0.5rem;
        border: 1px solid var(--border-color);
    }
    
    .portfolio-table .table-row:hover {
        background: var(--bg-card-hover);
    }
    
    .portfolio-table .td-property {
        width: 100%;
        gap: 0.5rem;
        padding-bottom: 0.375rem;
        border-bottom: 1px solid var(--border-color);
    }
    
    .portfolio-table .property-mini-img {
        width: 36px;
        height: 36px;
    }
    
    .portfolio-table .property-mini-name {
        font-size: 0.8125rem;
        white-space: normal;
        line-height: 1.2;
        margin-bottom: 0.125rem;
    }
    
    .portfolio-table .property-mini-location {
        font-size: 0.6875rem;
    }
    
    .portfolio-table .td-invested,
    .portfolio-table .td-current,
    .portfolio-table .td-gain,
    .portfolio-table .td-share,
    .portfolio-table .td-yield {
        width: 100%;
        display: grid;
        grid-template-columns: 80px 1fr;
        align-items: center;
        padding: 0.25rem 0;
        gap: 0.5rem;
    }
    
    .portfolio-table .td-invested::before,
    .portfolio-table .td-current::before,
    .portfolio-table .td-gain::before,
    .portfolio-table .td-share::before,
    .portfolio-table .td-yield::before {
        content: attr(data-label);
        font-size: 0.6875rem;
        color: var(--text-muted);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.2px;
    }
    
    .portfolio-table .td-invested,
    .portfolio-table .td-current,
    .portfolio-table .td-yield {
        font-size: 0.8125rem;
    }
    
    .portfolio-table .td-gain {
        flex-direction: row;
        justify-content: flex-start;
        gap: 0.375rem;
    }
    
    .portfolio-table .gain-amount {
        font-size: 0.8125rem;
    }
    
    .portfolio-table .gain-percent {
        font-size: 0.6875rem;
    }
    
    .portfolio-table .td-share {
        flex-direction: row;
        align-items: center;
        gap: 0.5rem;
    }
    
    .portfolio-table .share-bar {
        flex: 1;
        height: 4px;
    }
    
    .portfolio-table .share-text {
        min-width: 36px;
        text-align: right;
        font-size: 0.75rem;
    }
    
    .portfolio-table .td-actions {
        width: 100%;
        justify-content: stretch;
        gap: 0.375rem;
        border-top: 1px solid var(--border-color);
        padding-top: 0.375rem;
        margin-top: 0.125rem;
    }
    
    .portfolio-table .btn-table-action {
        flex: 1;
        height: 28px;
        font-size: 0.6875rem;
    }
    
    .portfolio-table .btn-table-action svg {
        width: 12px;
        height: 12px;
    }
    
    /* Property tables mobile */
    .property-table {
        display: block;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .property-table table {
        min-width: 600px;
        font-size: 0.75rem;
    }
    
    .property-table th,
    .property-table td {
        padding: 0.5rem 0.25rem;
        white-space: nowrap;
    }
    
    .property-table .property-name-cell {
        min-width: 120px;
    }
}

/* Custom Scrollbar */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}

::-webkit-scrollbar-track {
    background: var(--bg-secondary);
}

::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: var(--border-light);
}

/* Transaction Processing Spinner */
.transaction-spinner {
    width: 60px;
    height: 60px;
    margin: 0 auto;
    border: 4px solid var(--bg-tertiary);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}
