:root {
    --bg-color: #FFFFFF;
    --card-bg: #FFFFFF;
    --primary-color: #0F172A; /* Slate 900 */
    --primary-hover: #1E293B; /* Slate 800 */
    --text-main: #0F172A; /* Slate 900 */
    --text-secondary: #475569; /* Slate 600 */
    --border-color: #E2E8F0;
    --success-color: #059669; /* Emerald 600 */
    --danger-color: #DC2626; /* Red 600 */
    --chart-blue: #1E293B;
    --chart-green: #059669;
    --chart-orange: #B45309;
    --chart-red: #9F1239;
    --chart-purple: #3730A3;
    --chart-pink: #BE185D;
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 10px 30px -5px rgba(0, 0, 0, 0.08);
    --radius: 16px;
}

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&display=swap');

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Outfit', sans-serif;
    background-color: var(--bg-color);
    color: #111827 !important;
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

a {
    text-decoration: none;
    color: inherit;
}

button {
    cursor: pointer;
    font-family: inherit;
    border: none;
    background: none;
}

/* Layout */
.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 24px;
}

/* Header */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-top: 8px;
}

.logo {
    font-size: 18px;
    font-weight: 600;
    color: #111827 !important;
    display: flex;
    align-items: center;
}

.logo img {
    height: 42px;
}

@media (max-width: 768px) {
    .logo img {
        height: 72px;
    }
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 16px;
}

.nav-switch {
    background-color: #F3F4F6;
    padding: 4px;
    border-radius: 100px;
    display: flex;
    gap: 4px;
}

.nav-switch .btn {
    background-color: transparent;
    color: var(--text-secondary);
    border-radius: 100px;
    padding: 6px 20px;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.2s;
}

.nav-switch .btn:hover {
    color: #111827 !important;
}

.nav-switch .btn.active {
    background-color: #FFFFFF;
    color: #111827 !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.btn-primary {
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    background-color: var(--primary-color);
    color: white;
    transition: background-color 0.2s;
}

.btn-primary:hover {
    background-color: var(--primary-hover);
}

/* Stats Cards */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--card-bg);
    padding: 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
    display: flex;
    align-items: center;
    gap: 16px;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.stat-icon.blue {
    background-color: #F1F5F9; /* Slate 100 */
    color: #0F172A; /* Slate 900 */
}

.stat-icon.green {
    background-color: #F0FDF4; /* Emerald 50 */
    color: #166534; /* Emerald 800 */
}

.stat-icon.red {
    background-color: #FEF2F2; /* Red 50 */
    color: #991B1B; /* Red 800 */
}

.stat-icon.purple {
    background-color: #EEF2FF; /* Indigo 50 */
    color: #3730A3; /* Indigo 800 */
}

.stat-icon.gray {
    background-color: #F8FAFC; /* Slate 50 */
    color: #475569; /* Slate 600 */
}

.stat-info h3 {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.stat-value {
    font-size: 20px;
    font-weight: 700;
    color: #111827 !important;
}

.stat-sub {
    font-size: 12px;
    font-weight: 500;
    margin-left: 8px;
}

.text-success {
    color: var(--success-color);
}

.text-danger {
    color: var(--danger-color);
}

/* Portfolio Section */
.portfolio-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    margin-bottom: 24px;
    box-shadow: var(--shadow-sm);
}

.portfolio-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
}

.chart-column {
    display: flex;
    flex-direction: column;
}

.section-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 24px;
}

.chart-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 64px;
    height: 300px;
}

.history-chart-container {
    width: 100%;
    height: 300px;
}

.legend {
    display: flex;
    flex-direction: column;
    gap: 12px;
    min-width: 200px;
}

.legend-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 14px;
}

.legend-label {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--text-secondary);
}

.legend-color {
    width: 12px;
    height: 12px;
    border-radius: 4px;
}

.legend-value {
    font-weight: 600;
    color: #111827 !important;
}

/* AI Chat Interface */
.ai-chat-column {
    border-left: 1px solid var(--border-color);
    padding-left: 32px;
    display: flex;
    flex-direction: column;
}

.chat-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
}

.chat-icon {
    width: 32px;
    height: 32px;
    background: linear-gradient(135deg, #6366f1, #8b5cf6);
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.chat-title {
    font-size: 16px;
    font-weight: 600;
}

.chat-messages {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
    overflow-y: auto;
    max-height: 240px;
    padding-right: 8px;
}

.chat-bubble {
    background-color: #F3F4F6;
    padding: 12px 16px;
    border-radius: 12px;
    border-top-left-radius: 2px;
    font-size: 14px;
    color: #111827 !important;
    line-height: 1.5;
    position: relative;
}

.chat-bubble::before {
    content: '';
    position: absolute;
    top: 0;
    left: -8px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 0 8px 8px 0;
    border-color: transparent #F3F4F6 transparent transparent;
}

.chat-timestamp {
    font-size: 11px;
    color: var(--text-secondary);
    margin-top: 4px;
    text-align: right;
}

/* Assets Table */
.assets-section {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.assets-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
}

.asset-count {
    color: var(--text-secondary);
    font-weight: 500;
}

.table-container {
    width: 100%;
    overflow-x: visible;
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    text-align: left;
    padding: 12px 0;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border-color);
}

td {
    padding: 16px 0;
    font-size: 14px;
    color: #111827 !important;
    border-bottom: 1px solid var(--border-color);
}

tr:last-child td {
    border-bottom: none;
}

.asset-cell {
    display: flex;
    align-items: center;
    gap: 16px;
}

.asset-img {
    width: 48px;
    height: 48px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    object-fit: cover;
    background-color: #F3F4F6;
}

.asset-info h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 2px;
}

.asset-info p {
    font-size: 12px;
    color: var(--text-secondary);
}

.badge {
    padding: 2px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
}

.badge-collectibles { background-color: rgba(59, 130, 246, 0.1); color: #3B82F6; }
.badge-fashion { background-color: rgba(139, 92, 246, 0.1); color: #8B5CF6; }
.badge-art { background-color: rgba(16, 185, 129, 0.1); color: #10B981; }
.badge-jewelry { background-color: rgba(245, 158, 11, 0.1); color: #F59E0B; }
.badge-music { background-color: rgba(236, 72, 153, 0.1); color: #EC4899; }
.badge-furniture { background-color: rgba(99, 102, 241, 0.1); color: #6366F1; }

/* Value Slot & Tooltip */
.value-slot {
    display: inline-block;
    padding: 4px 16px;
    background-color: #F8FAFC;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    font-weight: 600;
    cursor: help;
    position: relative;
    transition: all 0.2s;
}

.value-slot:hover {
    background-color: #EFF6FF;
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.ai-tooltip {
    visibility: hidden;
    opacity: 0;
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background-color: #1E293B;
    color: white;
    padding: 12px;
    border-radius: 8px;
    width: 240px;
    font-size: 12px;
    font-weight: 400;
    z-index: 10;
    box-shadow: var(--shadow-md);
    transition: all 0.2s;
    pointer-events: none;
    text-align: left;
}

.ai-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -6px;
    border-width: 6px;
    border-style: solid;
    border-color: #1E293B transparent transparent transparent;
}

.value-slot:hover .ai-tooltip {
    visibility: visible;
    opacity: 1;
    transform: translateX(-50%) translateY(-8px);
}

.tooltip-header {
    color: #60A5FA;
    font-weight: 600;
    margin-bottom: 4px;
    display: block;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Marketplace */
.search-bar-container {
    display: flex;
    gap: 16px;
    margin-bottom: 32px;
}

.search-input-wrapper {
    flex: 1;
    position: relative;
}

.search-input {
    width: 100%;
    padding: 12px 16px 12px 48px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.search-input:focus {
    border-color: var(--primary-color);
}

.search-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
}

.filter-group {
    display: flex;
    gap: 8px;
}

.filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--text-secondary);
    color: #111827 !important;
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.market-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-image-container {
    position: relative;
    width: 100%;
    background-color: #F3F4F6;
}

.card-img {
    width: 100%;
    height: auto; display: block;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #111827 !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-content {
    padding: 10px;
}

.card-title { font-size: 16px; font-weight: 600; margin-bottom: 2px; text-align: left !important; }

.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.stat-pair {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-val {
    font-size: 14px;
    font-weight: 600;
}

.potential-badge {
    background-color: #ECFDF5;
    color: var(--success-color);
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
}

.posted-by {
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

/* Chat Scrollbar Hide (Override) */
.chat-messages {
    scrollbar-width: none;
    /* Firefox */
}

.chat-messages::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* History Section Grid */
.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.history-chart-wrapper {
    width: 100%;
    height: 300px;
}

.history-log {
    background-color: #F8FAFC;
    border-radius: 12px;
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    scrollbar-width: none;
}

.history-log::-webkit-scrollbar {
    display: none;
}

.log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.log-item:last-child {
    border-bottom: none;
}

.log-date {
    color: var(--text-secondary);
    font-weight: 500;
}

.log-value {
    font-weight: 600;
    color: #111827 !important;
}

.log-change {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 100px;
}



.filter-btn {
    padding: 6px 16px;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    background: var(--card-bg);
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.filter-btn:hover {
    border-color: var(--text-secondary);
    color: #111827 !important;
}

.filter-btn.active {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.marketplace-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
}

.market-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s, box-shadow 0.2s;
}

.market-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
}

.card-image-container {
    position: relative;
    width: 100%;
    background-color: #F3F4F6;
}

.card-img {
    width: 100%;
    height: auto; display: block;
}

.card-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.9);
    padding: 2px 12px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 600;
    color: #111827 !important;
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-content {
    padding: 10px;
}

.card-title { font-size: 16px; font-weight: 600; margin-bottom: 2px; text-align: left !important; }

.card-desc {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 16px;
    line-height: 1.4;
}

.card-stats {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.stat-pair {
    display: flex;
    flex-direction: column;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.stat-val {
    font-size: 14px;
    font-weight: 600;
}

.potential-badge {
    background-color: #ECFDF5;
    color: var(--success-color);
    padding: 6px 8px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 0;
}

.posted-by {
    font-size: 12px;
    color: var(--text-secondary);
    border-top: 1px solid var(--border-color);
    padding-top: 12px;
}

/* Chat Scrollbar Hide (Override) */
.chat-messages {
    scrollbar-width: none;
    /* Firefox */
}

.chat-messages::-webkit-scrollbar {
    display: none;
    /* Chrome, Safari, Opera */
}

/* History Section Grid */
.history-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    align-items: start;
}

.history-chart-wrapper {
    width: 100%;
    height: 300px;
}

.history-log {
    background-color: #F8FAFC;
    border-radius: 12px;
    padding: 20px;
    height: 300px;
    overflow-y: auto;
    scrollbar-width: none;
}

.history-log::-webkit-scrollbar {
    display: none;
}

.log-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid var(--border-color);
    font-size: 14px;
}

.log-item:last-child {
    border-bottom: none;
}

.log-date {
    color: var(--text-secondary);
    font-weight: 500;
}

.log-value {
    font-weight: 600;
    color: #111827 !important;
}

.log-change {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 100px;
}

.log-change.positive {
    background-color: #ECFDF5;
    color: var(--success-color);
}

.log-change.negative {
    background-color: #FEF2F2;
    color: var(--danger-color);
}

/* Post Asset Page */
.post-asset-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

/* Camera Box */
.camera-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #000;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stepper Overlay */
.stepper-overlay {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.5);
}

.step-node.active {
    color: #fff;
}

.node-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.step-node.active .node-circle {
    background-color: var(--primary-color);
    color: #fff;
}

.node-label {
    font-size: 10px;
    font-weight: 500;
}

.step-line {
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
    margin-bottom: 14px;
    /* Align with circle center roughly */
}

/* Camera Controls */
.camera-controls {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.capture-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.capture-btn:active {
    transform: scale(0.95);
}

.capture-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.helper-text {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 14px;
}

/* Upload Box */
.upload-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #F8FAFC;
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background-color: #EFF6FF;
}

.upload-content {
    text-align: center;
}

.upload-icon {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.upload-box h3 {
    font-size: 18px;
    border-radius: 100px;
}

.log-change.positive {
    background-color: #ECFDF5;
    color: var(--success-color);
}

.log-change.negative {
    background-color: #FEF2F2;
    color: var(--danger-color);
}

/* Post Asset Page */
.post-asset-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

/* Camera Box */
.camera-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #000;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stepper Overlay */
.stepper-overlay {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.5);
}

.step-node.active {
    color: #fff;
}

.node-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.step-node.active .node-circle {
    background-color: var(--primary-color);
    color: #fff;
}

.node-label {
    font-size: 10px;
    font-weight: 500;
}

.step-line {
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
    margin-bottom: 14px;
    /* Align with circle center roughly */
}

/* Camera Controls */
.camera-controls {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.capture-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.capture-btn:active {
    transform: scale(0.95);
}

.capture-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.helper-text {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 14px;
}

/* Upload Box */
.upload-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #F8FAFC;
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background-color: #EFF6FF;
}

.upload-content {
    text-align: center;
}

.upload-icon {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.upload-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827 !important;
    margin-bottom: 8px;
}

.browse-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.upload-hint {
    font-size: 12px;
}

.log-change {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 100px;
}

.log-change.positive {
    background-color: #ECFDF5;
    color: var(--success-color);
}

.log-change.negative {
    background-color: #FEF2F2;
    color: var(--danger-color);
}

/* Post Asset Page */
.post-asset-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

/* Camera Box */
.camera-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #000;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stepper Overlay */
.stepper-overlay {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.5);
}

.step-node.active {
    color: #fff;
}

.node-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.step-node.active .node-circle {
    background-color: var(--primary-color);
    color: #fff;
}

.node-label {
    font-size: 10px;
    font-weight: 500;
}

.step-line {
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
    margin-bottom: 14px;
    /* Align with circle center roughly */
}

/* Camera Controls */
.camera-controls {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.capture-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.capture-btn:active {
    transform: scale(0.95);
}

.capture-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.helper-text {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 14px;
}

/* Upload Box */
.upload-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #F8FAFC;
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background-color: #EFF6FF;
}

.upload-content {
    text-align: center;
}

.upload-icon {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.upload-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827 !important;
    margin-bottom: 8px;
}

.browse-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.upload-hint {
    font-size: 12px;
}

.log-change {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 100px;
}

.log-change.positive {
    background-color: #ECFDF5;
    color: var(--success-color);
}

.log-change.negative {
    background-color: #FEF2F2;
    color: var(--danger-color);
}

/* Post Asset Page */
.post-asset-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

/* Camera Box */
.camera-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #000;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stepper Overlay */
.stepper-overlay {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.5);
}

.step-node.active {
    color: #fff;
}

.node-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.step-node.active .node-circle {
    background-color: var(--primary-color);
    color: #fff;
}

.node-label {
    font-size: 10px;
    font-weight: 500;
}

.step-line {
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
    margin-bottom: 14px;
    /* Align with circle center roughly */
}

/* Camera Controls */
.camera-controls {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.capture-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.capture-btn:active {
    transform: scale(0.95);
}

.capture-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.helper-text {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 14px;
}

/* Upload Box */
.upload-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #F8FAFC;
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background-color: #EFF6FF;
}

.upload-content {
    text-align: center;
}

.upload-icon {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.upload-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827 !important;
    margin-bottom: 8px;
}

.browse-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.upload-hint {
    font-size: 12px;
}

.log-change {
    font-size: 12px;
    font-weight: 500;
    padding: 2px 8px;
    border-radius: 100px;
}

.log-change.positive {
    background-color: #ECFDF5;
    color: var(--success-color);
}

.log-change.negative {
    background-color: #FEF2F2;
    color: var(--danger-color);
}

/* Post Asset Page */
.post-asset-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

/* Camera Box */
.camera-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #000;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stepper Overlay */
.stepper-overlay {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.5);
}

.step-node.active {
    color: #fff;
}

.node-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.step-node.active .node-circle {
    background-color: var(--primary-color);
    color: #fff;
}

.node-label {
    font-size: 10px;
    font-weight: 500;
}

.step-line {
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
    margin-bottom: 14px;
    /* Align with circle center roughly */
}

/* Camera Controls */
.camera-controls {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.capture-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.capture-btn:active {
    transform: scale(0.95);
}

.capture-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.helper-text {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 14px;
}

/* Upload Box */
.upload-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #F8FAFC;
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background-color: #EFF6FF;
}

.upload-content {
    text-align: center;
}

.upload-icon {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.upload-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827 !important;
    margin-bottom: 8px;
}

.browse-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Listing Info */
.listing-info {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.listing-title-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.sort-select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    min-width: 160px;
}

.listing-count {
    font-size: 100px;
    font-weight: 400;
    color: #111827 !important;
    line-height: 1;
    letter-spacing: -3px;
}

/* Post Asset Page */
.post-asset-container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px 0;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

/* Camera Box */
.camera-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #000;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stepper Overlay */
.stepper-overlay {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.5);
}

.step-node.active {
    color: #fff;
}

.node-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.step-node.active .node-circle {
    background-color: var(--primary-color);
    color: #fff;
}

.node-label {
    font-size: 10px;
    font-weight: 500;
}

.step-line {
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
    margin-bottom: 14px;
    /* Align with circle center roughly */
}

/* Camera Controls */
.camera-controls {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.capture-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.capture-btn:active {
    transform: scale(0.95);
}

.capture-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.helper-text {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 14px;
}

/* Upload Box */
.upload-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #F8FAFC;
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background-color: #EFF6FF;
}

.upload-content {
    text-align: center;
}

.upload-icon {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.upload-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827 !important;
    margin-bottom: 8px;
}

.browse-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Listing Info */
.listing-info {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.listing-title-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.sort-select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    min-width: 160px;
}

.listing-count {
    font-size: 100px;
    font-weight: 400;
    color: #111827 !important;
    line-height: 1;
    letter-spacing: -3px;
}

.listing-text {
    font-size: 24px;
    margin: 0 auto;
    padding: 20px 0;
}

.post-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-top: 24px;
}

/* Camera Box */
.camera-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #000;
    border-radius: 24px;
    position: relative;
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

#camera-feed {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Stepper Overlay */
.stepper-overlay {
    position: absolute;
    top: 24px;
    left: 24px;
    right: 24px;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(8px);
    padding: 8px 20px;
    border-radius: 100px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.step-node {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: rgba(255, 255, 255, 0.5);
}

.step-node.active {
    color: #fff;
}

.node-circle {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
}

.step-node.active .node-circle {
    background-color: var(--primary-color);
    color: #fff;
}

.node-label {
    font-size: 10px;
    font-weight: 500;
}

.step-line {
    flex: 1;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.2);
    margin: 0 8px;
    margin-bottom: 14px;
    /* Align with circle center roughly */
}

/* Camera Controls */
.camera-controls {
    position: absolute;
    bottom: 24px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    z-index: 10;
}

.capture-btn {
    width: 72px;
    height: 72px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.3);
    border: none;
    padding: 4px;
    cursor: pointer;
    transition: transform 0.2s;
}

.capture-btn:active {
    transform: scale(0.95);
}

.capture-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    background-color: #fff;
    border: 2px solid rgba(0, 0, 0, 0.1);
}

.helper-text {
    text-align: center;
    color: var(--text-secondary);
    margin-top: 12px;
    font-size: 14px;
}

/* Upload Box */
.upload-box {
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #F8FAFC;
    border: 2px dashed var(--border-color);
    border-radius: 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
}

.upload-box:hover {
    border-color: var(--primary-color);
    background-color: #EFF6FF;
}

.upload-content {
    text-align: center;
}

.upload-icon {
    font-size: 48px;
    color: var(--text-secondary);
    margin-bottom: 16px;
}

.upload-box h3 {
    font-size: 18px;
    font-weight: 600;
    color: #111827 !important;
    margin-bottom: 8px;
}

.browse-link {
    color: var(--primary-color);
    font-weight: 600;
    text-decoration: underline;
}

.upload-hint {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Listing Info */
.listing-info {
    margin-bottom: 60px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.listing-title-group {
    display: flex;
    align-items: baseline;
    gap: 12px;
}

.sort-select {
    padding: 10px 16px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background-color: white;
    font-family: 'Outfit', sans-serif;
    font-size: 14px;
    color: var(--text-main);
    cursor: pointer;
    outline: none;
    min-width: 160px;
}

.listing-count {
    font-size: 100px;
    font-weight: 400;
    color: #111827 !important;
    line-height: 1;
    letter-spacing: -3px;
}

.listing-text {
    font-size: 24px;
    color: #111827 !important;
    font-weight: 400;
    line-height: 1;
}

/* AI Advice Bubble */
.ai-advice-bubble {
    position: absolute;
    bottom: 120px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(148, 163, 184, 0.6);
    backdrop-filter: blur(12px);
    padding: 16px 24px;
    border-radius: 16px;
    max-width: 80%;
    z-index: 15;
    animation: fadeInUp 0.4s ease-out;
}

.ai-advice-bubble p {
    color: #fff;
    font-size: 15px;
    font-weight: 500;
    margin: 0;
    text-align: center;
    line-height: 1.4;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

/* Asset Analysis Section */
.asset-analysis-section {
    margin-top: 48px;
    animation: slideIn 0.5s ease-out;
}

.analysis-title {
    font-size: 20px;
    font-weight: 600;
    color: #111827 !important;
    margin-bottom: 20px;
}

.analysis-card {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
}

.asset-info-row {
    display: flex;
    align-items: center;
    gap: 16px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.asset-image-placeholder {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, #E2E8F0 0%, #CBD5E1 100%);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.asset-image-placeholder i {
    font-size: 24px;
    color: #94A3B8;
}

.asset-details {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.asset-name-edit {
    display: flex;
    align-items: center;
    gap: 8px;
}

.asset-name-input {
    font-size: 16px;
    font-weight: 600;
    color: #111827 !important;
    border: none;
    background: transparent;
    padding: 4px 8px;
    border-radius: 6px;
    transition: all 0.2s;
    font-family: 'Inter', sans-serif;
}

.asset-name-input:not([readonly]) {
    background: #F1F5F9;
    border: 1px solid var(--primary-color);
}

.asset-name-input:focus {
    outline: none;
}

.edit-name-btn {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.edit-name-btn:hover {
    background: #F8FAFC;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.asset-condition {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.analysis-table {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.analysis-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
}

.analysis-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-secondary);
}

.analysis-value {
    font-size: 15px;
    font-weight: 600;
    color: #111827 !important;
}

.analysis-value.analyzing {
    color: var(--text-secondary);
    font-style: italic;
    animation: pulse 1.5s ease-in-out infinite;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes pulse {

    0%,
    100% {
        opacity: 0.6;
    }

    50% {
        opacity: 1;
    }
}

/* Analysis Grid Layout */
.analysis-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

/* AI Chat Panel */
.ai-chat-panel {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 16px;
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ai-chat-panel .chat-messages {
    display: flex;
    flex-direction: column;
    gap: 16px;
    height: 100%;
    overflow-y: auto;
    padding-right: 8px;
}

.ai-chat-bubble {
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: flex-start;
    animation: fadeIn 0.4s ease-out;
}

.ai-chat-bubble p {
    background: #F1F5F9;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    color: #111827 !important;
    margin: 0;
    max-width: 85%;
}

.chat-image-placeholder {
    width: 120px;
    height: 120px;
    background: #E2E8F0;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}

.loading-shimmer {
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg,
            transparent 0%,
            rgba(255, 255, 255, 0.6) 50%,
            transparent 100%);
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% {
        left: -100%;
    }

    100% {
        left: 100%;
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Chat Input Area */
.chat-input-area {
    display: flex;
    align-items: center;
    gap: 8px;
    padding-top: 16px;
    border-top: 1px solid var(--border-color);
    margin-top: 16px;
    position: relative;
}

.plus-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid var(--border-color);
    background: #fff;
    color: var(--text-secondary);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.plus-btn:hover {
    background: #F8FAFC;
    color: var(--primary-color);
    border-color: var(--primary-color);
}

.plus-menu {
    position: absolute;
    bottom: 50px;
    left: 0;
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 12px;
    box-shadow: var(--shadow-md);
    padding: 8px;
    min-width: 180px;
    z-index: 100;
}

.menu-item {
    width: 100%;
    padding: 10px 12px;
    border: none;
    background: transparent;
    text-align: left;
    cursor: pointer;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
    color: #111827 !important;
    transition: background 0.2s;
}

.menu-item:hover {
    background: #F1F5F9;
}

.menu-item i {
    width: 18px;
    color: var(--text-secondary);
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    font-size: 14px;
    font-family: 'Inter', sans-serif;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: var(--primary-color);
}

.send-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: none;
    background: var(--primary-color);
    color: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    flex-shrink: 0;
}

.send-btn:hover {
    background: #1D4ED8;
    transform: scale(1.05);
}

.send-btn:active {
    transform: scale(0.95);
}

/* User Chat Bubble */
.user-chat-bubble {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    animation: fadeIn 0.4s ease-out;
}

.user-chat-bubble p {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 16px;
    border-radius: 12px;
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
    max-width: 85%;
}


/* Progress Section */
.progress-section {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: #E5E7EB;
    border-radius: 100px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-bar {
    height: 100%;
    width: 0%;
    background: var(--primary-color);
    border-radius: 100px;
    transition: width 0.5s ease-out;
}

.progress-text {
    font-size: 13px;
    color: var(--text-secondary);
    margin: 0;
    text-align: center;
    font-weight: 500;
}

.post-submit-btn-fixed {
    position: fixed;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 1280px;
    width: calc(100% - 48px);
    padding: 16px 32px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 16px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.3);
    z-index: 1000;
}

.post-submit-btn-fixed:hover {
    background: var(--primary-hover);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
    transform: translateX(-50%) translateY(-2px);
}

.post-submit-btn-fixed:active {
    transform: translateX(-50%) scale(0.98);
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    /* Header */
    .header {
        flex-direction: column;
        gap: 16px;
        margin-bottom: 24px;
        align-items: flex-start;
        position: sticky;
        top: 0;
        background-color: var(--bg-color);
        z-index: 100;
        padding-top: 16px;
        padding-bottom: 16px;
        margin-left: -16px;
        margin-right: -16px;
        padding-left: 16px;
        padding-right: 16px;
    }

    .logo {
        align-self: flex-start;
    }

    .logo img {
        height: 28px !important;
    }

    .nav-actions {
        width: 100%;
        flex-direction: column;
        gap: 12px;
    }

    .nav-switch {
        width: 100%;
    }

    .nav-switch .btn {
        flex: 1;
        justify-content: center;
        padding: 10px 16px;
    }

    .btn-primary {
        width: 100%;
        justify-content: center;
    }

    /* Stats Grid */
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px;
    }

    .stat-value {
        font-size: 18px;
    }

    /* Portfolio Section */
    .portfolio-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .chart-container {
        flex-direction: column;
        gap: 24px;
        height: auto;
    }

    #portfolio-chart {
        width: 100%;
        max-width: 280px;
    }

    .legend {
        width: 100%;
    }

    .ai-chat-column {
        border-left: none;
        border-top: 1px solid var(--border-color);
        padding-left: 0;
        padding-top: 24px;
    }

    /* History Grid */
    .history-grid {
        grid-template-columns: 1fr;
    }

    .history-chart-wrapper {
        height: 250px;
    }

    .history-log {
        height: 250px;
    }

    /* Table */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    table {
        min-width: 700px;
    }

    th, td {
        font-size: 12px;
        padding: 12px 8px;
    }

    .asset-img {
        width: 40px;
        height: 40px;
    }

    .asset-info h4 {
        font-size: 13px;
    }

    .asset-info p {
        font-size: 11px;
    }

    .badge {
        font-size: 11px;
        padding: 3px 10px;
    }

    /* Search Bar */
    .search-bar-container {
        flex-direction: column;
        gap: 12px;
    }

    .search-input-wrapper {
        width: 100%;
    }

    .search-input {
        border-radius: 100px;
    }

    .filter-group {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .filter-group::-webkit-scrollbar {
        display: none;
    }

    .filter-btn {
        white-space: nowrap;
        font-size: 13px;
        padding: 8px 14px;
    }

    /* Listing Info */
    .listing-info {
        margin-bottom: 32px;
        flex-direction: column;
        gap: 4px;
        align-items: flex-start;
    }

    .listing-count {
        font-size: 64px;
        letter-spacing: -2px;
    }

    .listing-text {
        font-size: 15px; /* Reduced from 18px */
    }

    /* Marketplace Grid */
    .marketplace-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    /* Post Asset Page */
    .post-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .camera-box {
        aspect-ratio: 4 / 3;
    }

    .stepper-overlay {
        padding: 10px 16px;
        top: 16px;
        left: 16px;
        right: 16px;
    }

    .step-node {
        gap: 2px;
    }

    .node-circle {
        width: 20px;
        height: 20px;
        font-size: 11px;
    }

    .node-label {
        font-size: 9px;
    }

    .step-line {
        margin: 0 4px;
        margin-bottom: 10px;
    }

    .ai-advice-bubble {
        bottom: 100px;
        max-width: 90%;
        padding: 12px 16px;
    }

    .ai-advice-bubble p {
        font-size: 13px;
    }

    .camera-controls {
        bottom: 16px;
    }

    .capture-btn {
        width: 64px;
        height: 64px;
    }

    /* Analysis Section */
    .analysis-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .analysis-card {
        padding: 20px;
    }

    .asset-image-placeholder {
        width: 50px;
        height: 50px;
    }

    .asset-name-input {
        font-size: 14px;
    }

    .analysis-row {
        padding: 10px 0;
    }

    .analysis-label,
    .analysis-value {
        font-size: 13px;
    }

    .ai-chat-panel {
        padding: 20px;
    }

    .chat-messages {
        max-height: 200px;
    }

    .chat-input-area {
        padding-top: 12px;
        margin-top: 12px;
    }

    .chat-input {
        font-size: 13px;
        padding: 9px 12px;
    }

    .plus-btn,
    .send-btn {
        width: 32px;
        height: 32px;
    }

    .send-btn svg {
        width: 16px;
        height: 16px;
    }

    /* Bottom Button */
    .post-submit-btn-fixed {
        bottom: 16px;
        width: calc(100% - 32px);
        padding: 14px 24px;
        font-size: 15px;
    }

    /* Section Titles */
    .section-title {
        font-size: 16px;
        margin-bottom: 16px;
    }

    .analysis-title {
        font-size: 18px;
    }

    /* Floating Post Button (Mobile Only) */
    .nav-actions .btn-primary {
        position: fixed;
        bottom: 20px;
        right: 20px;
        width: 56px;
        height: 56px;
        border-radius: 50%;
        padding: 0;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
        z-index: 999;
        font-size: 0;
        display: flex !important;
        align-items: center;
        justify-content: center;
        gap: 0;
    }

    .nav-actions .btn-primary i {
        margin: 0 !important;
        font-size: 20px;
    }

    .nav-actions .btn-primary:not(:has(i)) {
        display: none;
    }

    body:has(.btn-primary.active) .nav-actions .btn-primary {
        display: none;
    }

    .btn-primary.hidden-mobile {
        display: none !important;
    }
}

/* Home Page Styles */
.home-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 60px 24px;
}

/* Sticky Header for Home Page */
body:has(.home-container) .header {
    position: sticky;
    top: 0;
    background-color: var(--bg-color);
    z-index: 100;
    padding-bottom: 16px;
}

.home-logo-section {
    text-align: center;
    margin-bottom: 48px;
}

.home-title {
    font-size: 32px;
    font-weight: 400;
    color: var(--text-main);
    margin: 0;
}

.home-search-wrapper {
    margin-bottom: 64px;
}

.home-search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 24px;
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.2s;
}

.home-search-box:focus-within {
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
    border-color: var(--primary-color);
}

.home-search-icon {
    color: var(--text-secondary);
    font-size: 20px;
}

.home-search-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    color: var(--text-main);
    background: transparent;
}

.home-search-input::placeholder {
    color: var(--text-secondary);
}

.home-search-btn {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--primary-color);
    color: white;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.home-search-btn:hover {
    background: var(--primary-hover);
    transform: scale(1.05);
}

.home-categories {
    text-align: center;
}

.home-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    justify-content: center;
}

.home-category-pill {
    background: #FFFFFF;
    border: 1px solid var(--border-color);
    border-radius: 100px;
    padding: 10px 24px;
    font-size: 15px;
    font-weight: 500;
    color: var(--text-main);
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    white-space: nowrap;
}

.home-category-pill:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.logo {
    cursor: pointer;
    text-decoration: none;
}

@media (max-width: 768px) {
    .home-container {
        padding: 40px 16px;
    }

    .home-title {
        font-size: 24px;
    }

    .home-logo-section {
        margin-bottom: 32px;
    }

    .home-search-wrapper {
        margin-bottom: 48px;
    }

    .home-search-box {
        padding: 8px 20px;
    }

    .home-search-input {
        font-size: 15px;
    }

    .home-search-btn {
        width: 40px;
        height: 40px;
    }

    .home-category-grid {
        gap: 10px;
    }

    .home-category-pill {
        padding: 8px 20px;
        font-size: 14px;
    }
}








/* Like Button Styles */
.card-badge {
    left: 12px !important;
    right: auto !important;
}

.card-like-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 10;
    color: #111827;
}

.card-like-btn:hover {
    transform: scale(1.1);
}

.card-like-btn.active svg {
    fill: #EF4444;
    stroke: none;
}

.listing-like-btn {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 10;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
    border: 1px solid #E5E7EB;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #111827;
    box-shadow: var(--shadow-sm);
}

.listing-like-btn:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-md);
}

.listing-like-btn.active {
    border-color: #EF4444;
}

.listing-like-btn.active svg {
    fill: #EF4444;
    stroke: none;
}



/* Mobile Bottom Navigation */
.bottom-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 12px 24px;
    padding-bottom: max(12px, env(safe-area-inset-bottom));
    justify-content: space-between;
    align-items: flex-end;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.05);
}

.bottom-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
    color: #D1D5DB; /* Lighter gray for inactive */
    font-size: 10px;
    font-weight: 500;
    text-decoration: none;
    width: 60px;
}

.bottom-nav-item svg, .bottom-nav-item i {
    width: 24px;
    height: 24px;
    font-size: 20px;
    stroke-width: 2px;
}

.bottom-nav-item.active {
    color: var(--primary-color);
}

.bottom-nav-post {
    width: 48px;
    height: 48px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    margin-bottom: 12px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transform: translateY(-20%);
}

@media (max-width: 768px) {
    .nav-actions {
        display: none;
    }
    
    .bottom-nav {
        display: flex;
    }

    .container {
        padding-bottom: 100px;
        padding-left: 16px;
        padding-right: 16px;
        max-width: 100%;
    }
    
    .header {
        margin-bottom: 24px;
    }
}

/* Mobile Responsive Fixes */
@media (max-width: 768px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .marketplace-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .journey-hero {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .portfolio-grid {
        grid-template-columns: 1fr;
    }

    .chart-container {
        flex-direction: column;
        height: auto;
        gap: 32px;
    }

    .history-grid {
        grid-template-columns: 1fr;
    }

    .post-grid {
        grid-template-columns: 1fr;
    }

    .bottom-nav {
        padding-bottom: max(20px, env(safe-area-inset-bottom));
        height: 80px;
        align-items: center;
        overflow: visible;
        justify-content: space-around; /* Distribute items evenly */
    }

    .bottom-nav-post-container {
        position: absolute;
        top: -70px; /* Float above the nav bar */
        right: 16px; /* Position on the right */
        left: auto;
        transform: none;
        z-index: 101;
    }

    .bottom-nav-post {
        width: 56px;
        height: 56px;
        border-radius: 50%;
        background: var(--primary-color);
        box-shadow: 0 4px 12px rgba(0,0,0,0.3);
        display: flex;
        align-items: center;
        justify-content: center;
        color: white;
        font-size: 24px;
        margin: 0;
        transform: none;
    }
    
    /* Ensure container fits narrow screens */
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

 
 / *   E x t r a   S m a l l   M o b i l e   D e v i c e s   ( d o w n   t o   3 0 0 p x )   * / 
 
 @ m e d i a   ( m a x - w i d t h :   3 6 0 p x )   { 
 
         . c o n t a i n e r   { 
 
                 p a d d i n g - l e f t :   1 2 p x ; 
 
                 p a d d i n g - r i g h t :   1 2 p x ; 
 
         } 
 
 
 
         / *   S w i t c h   g r i d s   t o   s i n g l e   c o l u m n   t o   p r e v e n t   s q u i s h i n g   * / 
 
         . m a r k e t p l a c e - g r i d ,   
 
         . s t a t s - g r i d   { 
 
                 g r i d - t e m p l a t e - c o l u m n s :   1 f r ; 
 
         } 
 
 
 
         / *   S t a c k   h e a d e r   i n f o   v e r t i c a l l y   * / 
 
         . l i s t i n g - i n f o   { 
 
                 f l e x - d i r e c t i o n :   c o l u m n ; 
 
                 a l i g n - i t e m s :   f l e x - s t a r t ; 
 
                 g a p :   1 6 p x ; 
 
         } 
 
 
 
         . l i s t i n g - t i t l e - g r o u p   { 
 
                 f l e x - d i r e c t i o n :   c o l u m n ; 
 
                 a l i g n - i t e m s :   f l e x - s t a r t ; 
 
                 g a p :   4 p x ; 
 
         } 
 
 
 
         . s o r t - w r a p p e r   { 
 
                 w i d t h :   1 0 0 % ; 
 
         } 
 
 
 
         . s o r t - s e l e c t   { 
 
                 w i d t h :   1 0 0 % ; 
 
                 m i n - w i d t h :   0 ; 
 
         } 
 
 
 
         / *   A d j u s t   f o n t   s i z e s   f o r   v e r y   s m a l l   s c r e e n s   * / 
 
         . s t a t - v a l   { 
 
                 f o n t - s i z e :   2 8 p x   ! i m p o r t a n t ;   / *   R e d u c e   f r o m   3 6 p x   * / 
 
         } 
 
 
 
         . l i s t i n g - c o u n t   { 
 
                 f o n t - s i z e :   6 0 p x ;   / *   R e d u c e   f r o m   1 0 0 p x   * / 
 
         } 
 
         
 
         . h o m e - t i t l e   { 
 
                 f o n t - s i z e :   2 8 p x ; 
 
         } 
 
 } 
 
 
@media (max-width: 768px) {
    .marketplace-page .mobile-location-header {
        display: block !important;
        font-size: 20px;
        font-weight: 700;
        color: #111827;
    }
    .marketplace-page .default-logo {
        display: none;
    }
}


/* Sticky Search & Filters on Mobile */
@media (max-width: 768px) {
    .search-bar-container {
        position: sticky;
        top: 0;
        z-index: 110; /* Higher than bottom nav (100) and floating button (101) */
        background-color: var(--bg-color);
        margin-left: -16px;
        margin-right: -16px;
        padding: 12px 16px;
        margin-bottom: 16px;
        flex-direction: column;
        gap: 12px;
        box-shadow: none; /* Removed shadow as requested */
    }

    .filter-group {
        overflow-x: auto;
        padding-bottom: 4px;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }
    
    .filter-group::-webkit-scrollbar {
        display: none;
    }
    
    .filter-btn {
        white-space: nowrap;
        flex-shrink: 0;
    }
}


/* Dashboard Grid Layout */
.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    margin-bottom: 32px;
}

.dashboard-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Stats Column */
.stats-column {
    display: flex;
    flex-direction: column;
    gap: 12px;
    aspect-ratio: 1 / 1;
}

.stats-column .stat-card {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 0 24px;
    background: white;
    border-radius: 16px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 0;
}

/* Portfolio Card */
.portfolio-card .chart-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    height: auto;
    padding: 0;
}

#portfolio-chart {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

#portfolio-chart svg {
    max-width: 100%;
    max-height: 100%;
}

/* Chat Card */
.chat-card .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
}

/* Mobile Responsive for Dashboard */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .stats-column, .dashboard-card {
        aspect-ratio: auto;
        height: auto;
    }
    /* Removed conflicting stats-column styles here as they are now handled in the Combined Card media query block below */
    .portfolio-card {
        height: 400px;
    }
    .chat-card {
        height: 400px;
    }
}


/* Combined Card Layout */
.dashboard-grid {
    grid-template-columns: 1fr 2fr;
}

.combined-card {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Increased portfolio width, reduced AI width */
    gap: 32px;
    padding: 24px;
    aspect-ratio: auto;
}

.combined-section {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.portfolio-section-inner .chart-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
}

.chat-section-inner .chat-messages {
    flex: 1;
    overflow-y: auto;
    padding-right: 4px;
    max-height: none; /* Remove fixed height limit */
}

.chat-bubble {
    word-wrap: break-word; /* Prevent text overflow */
    overflow-wrap: break-word;
    min-width: 0; /* Allow flex item to shrink */
}

/* Mobile Responsive for Combined Card */
@media (max-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
    }
    .combined-card {
        grid-template-columns: 1fr;
        gap: 24px;
        height: auto;
    }
    .portfolio-section-inner {
        height: 300px;
    }
    .chat-section-inner {
        height: 300px;
    }

    /* Stats Cards - 2x2 Grid on Mobile */
    .stats-column {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 12px;
    }

    .stat-card {
        padding: 16px 12px; /* Increased vertical padding */
        flex-direction: row; /* Horizontal layout */
        align-items: center; /* Center vertically */
        justify-content: flex-start;
        gap: 12px;
        min-height: 80px; /* Ensure a bit more height */
    }

    .stat-icon {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 0;
        flex-shrink: 0; /* Prevent icon from shrinking */
    }

    .stat-info {
        width: auto;
        flex: 1; /* Take remaining space */
        display: flex;
        flex-direction: column;
        gap: 2px;
        min-width: 0; /* Allow text truncation to work */
    }

    .stat-info h3 {
        font-size: 11px;
        margin-bottom: 0;
        opacity: 0.8;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    .stat-value {
        font-size: 15px;
        display: flex;
        flex-wrap: wrap;
        align-items: baseline;
        gap: 4px;
        line-height: 1.2;
    }

    .stat-sub {
        font-size: 10px;
        opacity: 0.9;
    }

    /* Fix Portfolio History on Mobile */
    .history-grid {
        grid-template-columns: 1fr;
        gap: 24px;
    }

    .history-chart-wrapper {
        width: 100%;
        height: 250px;
        overflow: hidden;
    }
    
    #history-chart svg {
        width: 100%;
        height: 100%;
    }

    /* Mobile Portfolio Chart & Legend */
    .portfolio-section-inner {
        height: auto;
        padding-bottom: 12px;
    }

    .portfolio-section-inner .chart-container {
        flex-direction: column;
        margin-left: 0;
        gap: 20px;
        height: auto;
    }

    .legend {
        position: static;
        width: 100%;
        max-width: 100%;
        background: #FFFFFF; /* White background */
        border: 1px solid #E5E7EB;
        border-radius: 12px;
        box-shadow: 0 2px 4px rgba(0,0,0,0.02); /* Subtle shadow for independence */
        backdrop-filter: none;
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* 2 columns */
        gap: 8px 16px;
        pointer-events: auto;
        padding: 12px;
        margin-top: 12px;
    }

    .legend-item {
        background: transparent;
        padding: 0;
        border-radius: 0;
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 8px;
        border-bottom: 1px solid #F3F4F6;
        padding-bottom: 4px;
    }

    .legend-item:nth-last-child(-n+2) {
        border-bottom: none;
        padding-bottom: 0;
    }

    .legend-item .legend-label {
        font-size: 11px; /* Smaller text */
        color: #6B7280;
        width: auto;
        display: flex;
        align-items: center;
        gap: 6px;
    }

    .legend-item .legend-value {
        font-size: 12px; /* Smaller text */
        margin-left: 0;
        color: #111827;
        font-weight: 600;
    }
}


/* Refinements for Dashboard Sizing */

/* Stats Cards - Smaller Size */
.stat-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
    border-radius: 10px;
}

.stat-info h3 {
    font-size: 12px;
    margin-bottom: 2px;
}

.stat-value {
    font-size: 18px;
}

/* Portfolio Chart - Overlay Legend */
.portfolio-section-inner .chart-container {
    position: relative;
    display: flex;
    justify-content: flex-start; /* Move graph to the left */
    align-items: center;
    gap: 0;
    padding-left: 0; /* Removed padding to move further left */
    margin-left: -40px; /* Strong negative margin to pull it significantly left */
}

.legend {
    position: absolute;
    right: 0;
    bottom: 0;
    min-width: auto;
    width: auto;
    background: rgba(255, 255, 255, 0.6); /* Transparent overlay */
    backdrop-filter: blur(2px);
    padding: 8px;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    z-index: 10;
    border: 1px solid rgba(255, 255, 255, 0.3);
    pointer-events: none; /* Prevent blocking chart interaction */
    max-width: 160px; /* Increased width for Collectibles text */
}

.legend-item {
    font-size: 10px; /* Very small text */
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
    white-space: nowrap; /* Prevent text wrapping */
}

.legend-color {
    width: 6px;
    height: 6px;
    border-radius: 50%;
}

.legend-value {
    font-weight: 600;
    margin-left: 8px;
}


/* Global Desktop Zoom */
@media (min-width: 1025px) {
    body {
        zoom: 0.8;
    }
}


/* Mobile Zoom Reset */
@media (max-width: 1024px) {
    body {
        zoom: 1;
    }
}


/* Global Card Style Override: Border instead of Shadow */
.stat-card,
.portfolio-section,
.dashboard-card,
.market-card,
.assets-section,
.combined-card {
    box-shadow: none !important;
    border: 1px solid #E5E7EB; /* Light gray border */
}

.market-card:hover {
    box-shadow: none !important;
    border-color: #D1D5DB;
}


/* Image Placeholder Override */
.card-image-container {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    aspect-ratio: 4/3 !important;
    background-color: #F3F4F6 !important;
}

.card-img {
    display: none !important;
}

.card-placeholder-icon {
    width: 80px;
    height: auto;
    opacity: 0.4;
    filter: grayscale(100%);
}


/* Asset Table Image Placeholder */
.asset-img-placeholder {
    width: 40px;
    height: 40px;
    background-color: #F3F4F6;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.asset-img-placeholder img {
    width: 24px;
    height: auto;
    opacity: 0.4;
    filter: grayscale(100%);
}

.asset-cell .asset-img {
    display: none;
}


/* Post Details Section */
.tag-pill {
    padding: 8px 16px;
    background: #F3F4F6;
    color: #4B5563;
    border: 1px solid transparent;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
}

.tag-pill:hover {
    background: #E5E7EB;
    color: #111827;
}

.tag-pill.active {
    background: #111827;
    color: #FFFFFF;
    border-color: #111827;
}


/* Hashtag Delete Style */
.tag-pill {
    position: relative;
    padding-right: 16px;
    overflow: hidden;
}

.tag-pill:hover {
    background-color: #FEE2E2 !important;
    color: #EF4444 !important;
    border-color: #FCA5A5 !important;
    padding-right: 32px;
}

.tag-pill:hover::after {
    content: '\f00d'; /* FontAwesome X mark */
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* Price & Time Estimator */
.price-estimator-container {
    background: #F9FAFB;
    border: 1px solid #E5E7EB;
    border-radius: 12px;
    padding: 16px;
    margin-top: 12px;
}

.time-estimator-bar {
    height: 6px;
    background: #E5E7EB;
    border-radius: 3px;
    margin: 12px 0;
    position: relative;
    overflow: hidden;
}

.time-estimator-fill {
    height: 100%;
    background: #D1D5DB; /* Default gray */
    width: 0%; /* Start at 0 width */
    transition: width 0.3s ease, background 0.3s ease;
}

.price-controls {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-adjust-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #E5E7EB;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #374151;
    transition: all 0.2s;
}

.price-adjust-btn:hover {
    background: #F3F4F6;
    border-color: #D1D5DB;
}


/* Camera Toggle Button */
.camera-toggle-btn {
 position: absolute;
 top: 16px;
 left: 16px;
 width: 16px;
 height: 16px;
 background-color: #EF4444;
 border: 2px solid white;
 border-radius: 50%;
 cursor: pointer;
 z-index: 20;
 box-shadow: 0 2px 4px rgba(0,0,0,0.2);
 transition: transform 0.2s, background-color 0.2s;
 padding: 0;
}

.camera-toggle-btn:hover {
 transform: scale(1.2);
}

.camera-toggle-btn.active {
 background-color: #10B981; /* Green when active */
 box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.2);
}

/* Default: Hide Mobile Elements on Desktop */
.mobile-legend-grid {
    display: none;
}

.ai-chat-mobile-box {
    display: contents;
}

/* Mobile Optimization for Portfolio */
@media (max-width: 768px) {
 /* Reset Combined Card Layout */
 .combined-card {
 display: flex;
 flex-direction: column;
 gap: 16px;
 padding: 16px;
 }

 /* Portfolio Section - Center Chart */
 .portfolio-section-inner {
 width: 100%;
 border-right: none;
 padding-right: 0;
 margin-bottom: 0;
 }

 .portfolio-section-inner .chart-container {
 margin-left: 0;
 justify-content: center;
 height: auto;
 min-height: 250px;
 }

 /* Hide Overlay Legend on Mobile */
 .portfolio-section-inner .legend {
 display: none;
 }

    /* New Mobile Legend Grid */
    .mobile-legend-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-top: 16px;
    }

    .mobile-legend-item {
        background: #FFFFFF;
        border: 1px solid #E2E8F0;
        border-radius: 8px;
        padding: 12px;
        display: flex;
        flex-direction: column;
        gap: 4px;
    } .mobile-legend-label {
 font-size: 12px;
 color: #64748B;
 display: flex;
 align-items: center;
 gap: 6px;
 }

 .mobile-legend-dot {
 width: 8px;
 height: 8px;
 border-radius: 50%;
 }

 .mobile-legend-value {
 font-size: 16px;
 font-weight: 600;
 color: #0F172A;
 }

 /* AI Chat Section - Mobile Box */
 .chat-section-inner {
 width: 100%;
 padding-left: 0;
 border-left: none;
 border-top: 1px solid #E2E8F0;
 padding-top: 16px;
 margin-top: 0;
 }

    .ai-chat-mobile-box {
        background: #FFFFFF;
        border: 1px solid #E2E8F0;
        border-radius: 12px;
        padding: 16px;
    } .chat-header {
 margin-bottom: 12px;
 }

 .chat-messages {
 max-height: 150px;
 }
}


/* Mobile Header Fix: Not Sticky */
@media (max-width: 768px) {
 .header {
 position: relative !important;
 top: auto !important;
 z-index: auto !important;
 background: transparent !important;
 box-shadow: none !important;
 }
}


/* Mobile Contact Button Styles */
.mobile-contact-btn-fixed {
 display: none; /* Hidden by default */
 position: fixed;
 bottom: 24px;
 left: 50%;
 transform: translateX(-50%);
 width: calc(100% - 48px);
 max-width: 400px;
 padding: 16px 32px;
 background: #111827;
 color: white;
 border: none;
 border-radius: 100px;
 font-size: 16px;
 font-weight: 600;
 cursor: pointer;
 align-items: center;
 justify-content: center;
 gap: 10px;
 box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
 z-index: 1000;
}

@media (max-width: 768px) {
 .desktop-contact-btn {
 display: none !important;
 }

 .mobile-contact-btn-fixed {
 display: flex;
 }

 /* Adjust seller comment card layout for mobile */
 .seller-comment-card {
 flex-direction: column;
 align-items: flex-start;
 gap: 16px;
 padding-bottom: 16px; /* Reduce padding since button is gone */
 }
}


/* Mobile Contact Section (Inline) */
.mobile-contact-section {
 display: none;
 flex-direction: column;
 gap: 8px;
 margin-top: 16px;
}

.mobile-contact-btn {
 width: 100%;
 padding: 14px;
 background: #111827;
 color: white;
 border: none;
 border-radius: 100px;
 font-size: 16px;
 font-weight: 600;
 cursor: pointer;
 display: flex;
 align-items: center;
 justify-content: center;
 gap: 10px;
}

.response-time-text {
 font-size: 13px;
 color: #6B7280;
 text-align: center;
}

@media (max-width: 768px) {
 .mobile-contact-section {
 display: flex;
 }
 
 /* Hide the fixed button if it still exists */
 .mobile-contact-btn-fixed {
 display: none !important;
 }
}


@media (max-width: 768px) {
 .desktop-contact-wrapper {
 display: none !important;
 }
}


@media (max-width: 768px) {
    .desktop-contact-wrapper {
        display: none !important;
    }
}


/* New Dashboard Layout */
.dashboard-grid {
 display: flex;
 flex-direction: column;
 gap: 24px;
}

/* Stats Carousel */
.stats-carousel-container {
 width: 100%;
 overflow: hidden;
}

.stats-carousel {
 display: flex;
 gap: 16px;
 overflow-x: auto;
 padding-bottom: 8px;
 scroll-snap-type: x mandatory;
 -webkit-overflow-scrolling: touch;
 scrollbar-width: none; /* Firefox */
}

.stats-carousel::-webkit-scrollbar {
 display: none; /* Chrome/Safari */
}

.stats-carousel .stat-card {
 min-width: 280px;
 flex: 0 0 auto;
 scroll-snap-align: start;
 background: white;
 border-radius: 16px;
 padding: 20px;
 box-shadow: var(--shadow-sm);
 display: flex;
 align-items: center;
 gap: 16px;
 border: 1px solid #E5E7EB;
}

/* History Main Card */
.history-main-card {
 background: white;
 border-radius: 24px;
 padding: 24px;
 box-shadow: var(--shadow-sm);
 border: 1px solid #E5E7EB;
 min-height: 400px;
 display: flex;
 flex-direction: column;
}

.history-chart-wrapper {
 flex: 1;
 width: 100%;
 min-height: 300px;
}

/* Transaction History List */
.history-log-list {
 display: flex;
 flex-direction: column;
 gap: 12px;
}

.history-item {
 display: flex;
 align-items: center;
 justify-content: space-between;
 padding: 16px;
 background: white;
 border-radius: 12px;
 border: 1px solid #E5E7EB;
}

.history-item-left {
 display: flex;
 align-items: center;
 gap: 12px;
}

.history-icon {
 width: 40px;
 height: 40px;
 border-radius: 50%;
 background: #F3F4F6;
 display: flex;
 align-items: center;
 justify-content: center;
 color: #6B7280;
}

.history-details h4 {
 font-size: 15px;
 font-weight: 600;
 color: #111827;
 margin-bottom: 2px;
}

.history-details p {
 font-size: 13px;
 color: #6B7280;
}

.history-amount {
 font-weight: 600;
 font-size: 15px;
}

.amount-plus { color: #059669; }
.amount-minus { color: #DC2626; }

@media (min-width: 1024px) {
 .dashboard-grid {
 display: grid;
 grid-template-columns: 300px 1fr;
 align-items: start;
 }

 .stats-carousel-container {
 grid-column: 1;
 height: 100%;
 }

 .stats-carousel {
 flex-direction: column;
 overflow-x: visible;
 height: 100%;
 }

 .stats-carousel .stat-card {
 width: 100%;
 min-width: 0;
 }

 .history-main-card {
 grid-column: 2;
 height: 100%;
 }
}


/* Single Stat Card (Auto-rotating) */
.stats-single-card-container {
 width: 100%;
 display: flex;
 flex-direction: column;
 gap: 12px;
}

.stats-single-card {
 background: #F8FAFC;
 border-radius: 24px;
 padding: 24px;
 box-shadow: var(--shadow-sm);
 border: 1px solid #E5E7EB;
 position: relative;
 overflow: hidden;
 min-height: 120px;
 display: flex;
 align-items: center;
 cursor: grab;
 user-select: none;
}

.stats-single-card:active {
 cursor: grabbing;
}

.stat-slide {
 display: none;
 width: 100%;
 align-items: center;
 gap: 16px;
 animation: fadeIn 0.3s ease-in-out;
}

.stat-slide.active {
 display: flex;
}

@keyframes fadeIn {
 from { opacity: 0; transform: translateY(5px); }
 to { opacity: 1; transform: translateY(0); }
}

.stats-indicators {
 display: flex;
 justify-content: center;
 gap: 8px;
}

.stat-dot {
 width: 8px;
 height: 8px;
 border-radius: 50%;
 background-color: #E5E7EB;
 transition: all 0.3s;
 cursor: pointer;
}

.stat-dot.active {
 background-color: #111827;
 width: 24px;
 border-radius: 100px;
}

/* Fix History Card Layout */
.history-main-card {
    height: 400px; /* Fixed height to match stats card */
    display: flex;
    flex-direction: column;
}

.history-chart-wrapper {
    width: 100%;
    height: 100%;
    flex: 1;
}

/* Vertical Slide Animation */
@keyframes slideVertical {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.stat-slide {
    display: none;
    width: 100%;
    align-items: center;
    gap: 16px;
    animation: slideVertical 0.4s ease-out;
}

@media (min-width: 1024px) {
    .dashboard-grid {
        grid-template-columns: 320px 1fr;
        align-items: start; /* Don't stretch heights */
    }
    
    .stats-single-card-container {
        height: 400px; /* Fixed height for the stats card */
        justify-content: center;
    }

    .stats-single-card {
        height: 100%;
        flex-direction: column;
        justify-content: center;
        text-align: center;
    } .stat-slide.active {
 flex-direction: column;
 gap: 24px;
 }

 .stat-slide .stat-icon {
 width: 64px;
 height: 64px;
 font-size: 24px;
 }

 .stat-slide .stat-value {
 font-size: 32px;
 }
}



/* Redesigned Stats Card */
.stats-single-card {
 position: relative;
 padding: 32px;
}

.stat-slide.active {
 display: flex;
 flex-direction: column;
 height: 100%;
 justify-content: space-between;
 position: relative;
}

/* Icon Top Left */
.stat-icon-wrapper {
 width: 100%;
 display: flex;
 justify-content: flex-start;
}

.stat-slide .stat-icon {
 width: 80px;
 height: 80px;
 font-size: 56px;
 border-radius: 0;
 background-color: transparent !important;
 padding: 0;
 color: #000000 !important;
}

.stat-slide .stat-icon svg {
 width: 56px;
 height: 56px;
}

/* Content Center */
.stat-content-center {
 text-align: center;
 margin-top: -20px; /* Pull up slightly to balance */
}

.stat-content-center h3 {
 font-size: 16px;
 color: #6B7280;
 margin-bottom: 8px;
 font-weight: 600;
}

.stat-desc {
 font-size: 13px;
 color: #9CA3AF;
 font-weight: 400;
 max-width: 200px;
 margin: 0 auto;
 line-height: 1.4;
}

/* Value Bottom Right */
.stat-value-wrapper {
 width: 100%;
 display: flex;
 justify-content: flex-end;
 align-items: flex-end;
}

.stat-slide .stat-value {
 font-size: 36px;
 font-weight: 700;
 color: #111827;
 line-height: 1;
}

/* Adjust Indicators Position */
.stats-indicators {
 position: absolute;
 bottom: 24px;
 left: 50%;
 transform: translateX(-50%);
}

/* Ensure History Chart fills width */
.history-main-card {
 width: 100%;
}



/* Fix Indicators Position - Bottom Left */
.stats-indicators {
 position: absolute;
 bottom: 32px;
 left: 32px;
 transform: none; /* Remove centering */
 display: flex;
 gap: 8px;
 z-index: 10;
}

/* Ensure dots are visible on white */
.stat-dot {
 background-color: #F3F4F6; /* Lighter gray for inactive */
}

.stat-dot.active {
 background-color: #111827; /* Dark for active */
}



/* Asset History Section */
.section-header-row {
 display: flex;
 justify-content: space-between;
 align-items: center;
 margin-bottom: 24px;
}

.asset-nav-controls {
 display: flex;
 align-items: center;
 gap: 16px;
 background: white;
 padding: 8px 16px;
 border-radius: 100px;
 border: 1px solid #E5E7EB;
}

.nav-btn {
 background: none;
 border: none;
 cursor: pointer;
 color: #6B7280;
 font-size: 14px;
 padding: 4px;
 transition: color 0.2s;
}

.nav-btn:hover {
 color: #111827;
}

#asset-counter {
 font-size: 14px;
 font-weight: 600;
 color: #374151;
 min-width: 40px;
 text-align: center;
}

.asset-history-card {
 background: white;
 border-radius: 24px;
 padding: 32px;
 border: 1px solid #E5E7EB;
 min-height: 300px;
 position: relative;
}

/* Asset Content Layout */
.asset-content-grid {
 display: grid;
 grid-template-columns: 1fr 1fr;
 gap: 32px;
 align-items: center;
}

@media (max-width: 768px) {
 .asset-content-grid {
 grid-template-columns: 1fr;
 }
}

.asset-info-col {
 display: flex;
 flex-direction: column;
 gap: 24px;
}

.asset-header {
 display: flex;
 align-items: center;
 gap: 16px;
}

.asset-icon-large {
 width: 64px;
 height: 64px;
 border-radius: 16px;
 background: #F3F4F6;
 display: flex;
 align-items: center;
 justify-content: center;
 font-size: 24px;
 color: #4B5563;
}

.asset-title-group h3 {
 font-size: 20px;
 font-weight: 700;
 color: #111827;
 margin-bottom: 4px;
}

.asset-category {
 font-size: 14px;
 color: #6B7280;
}

.asset-stats-row {
 display: flex;
 gap: 32px;
}

.asset-stat-item label {
 display: block;
 font-size: 12px;
 color: #9CA3AF;
 margin-bottom: 4px;
}

.asset-stat-item .value {
 font-size: 24px;
 font-weight: 700;
 color: #111827;
}

.asset-ai-desc {
 background: #F9FAFB;
 padding: 20px;
 border-radius: 16px;
 border: 1px solid #F3F4F6;
}

.ai-label {
 display: flex;
 align-items: center;
 gap: 8px;
 font-size: 12px;
 font-weight: 600;
 color: #7C3AED; /* Violet for AI */
 margin-bottom: 8px;
}

.ai-text {
 font-size: 14px;
 color: #4B5563;
 line-height: 1.6;
}

/* Chart Area */
.asset-chart-col {
 height: 250px;
 background: #F9FAFB;
 border-radius: 16px;
 position: relative;
 overflow: hidden;
}

/* Loading State */
.asset-loading {
 display: flex;
 flex-direction: column;
 align-items: center;
 justify-content: center;
 height: 300px;
 gap: 16px;
 color: #6B7280;
}

.loading-spinner {
 width: 40px;
 height: 40px;
 border: 3px solid #E5E7EB;
 border-top-color: #111827;
 border-radius: 50%;
 animation: spin 1s linear infinite;
}

@keyframes spin {
 to { transform: rotate(360deg); }
}



/* Asset Indicators */
.asset-indicators {
 display: flex;
 justify-content: center;
 gap: 8px;
 margin-top: 16px;
}

.asset-dot {
 width: 8px;
 height: 8px;
 border-radius: 50%;
 background-color: #E5E7EB;
 transition: all 0.3s;
 cursor: pointer;
}

.asset-dot.active {
 background-color: #10B981; /* Green to match theme */
 width: 24px;
 border-radius: 100px;
}

/* Valu Insight Label Update */
.ai-label {
 color: #10B981 !important; /* Force Green */
}



/* Asset Icon Image */
.asset-icon-img {
 width: 32px;
 height: 32px;
 object-fit: contain;
}



/* Mobile Table Adjustments */
@media (max-width: 768px) {
    /* .container padding handled in later block */

    /* Mobile Table Optimization */
    table {
        width: auto !important; /* Fit content to reduce gap */
        min-width: 90% !important; /* But keep it substantial */
        margin: 0 auto !important; /* Center it */
        table-layout: auto;
    }

    /* Column Sizing */
    th:nth-child(1) { 
        width: auto; 
        padding-right: 4px !important; /* Small padding */
    } 
    th:nth-child(2), td:nth-child(2) { display: none; }
    
    th:nth-child(3) { 
        width: 1%; 
        white-space: nowrap; 
        text-align: right; 
        padding-left: 4px !important; /* Small padding */
    }
    td:nth-child(3) { 
        white-space: nowrap; 
        text-align: right; 
        padding-left: 4px !important;
    }
    
    th:nth-child(4), td:nth-child(4) { display: none; }

    /* Compact Cells */
    th, td {
        padding: 16px 2px !important; /* Increased vertical padding */
        font-size: 11px !important;
    }

    /* Asset Info Compact */
    .asset-cell {
        display: flex;
        align-items: center;
        gap: 4px; /* Reduced gap */
        width: 100%;
    }

    .asset-img-placeholder {
        display: none !important; /* Hidden on mobile */
    }
    
    .asset-info {
        min-width: 0;
        flex: 1;
        overflow: hidden;
    }

    .asset-info h4 {
        font-size: 11px !important;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 40vw !important; 
    }

    /* Edit Container Adjustments */
    #edit-asset-container {
        width: auto !important; /* Match table width behavior */
        min-width: 90% !important;
        margin: 0 auto !important;
        box-sizing: border-box;
        padding: 8px 0px !important;
    }

    /* Remove Card Styling on Mobile to save space */
    .asset-history-card {
        padding: 0 !important;
        border: none !important;
        background: transparent !important;
        border-radius: 0 !important;
        min-height: auto !important;
        box-shadow: none !important;
    }

    .asset-content-grid {
        grid-template-columns: 1fr !important;
        gap: 4px !important; /* Reduced gap */
        width: 100% !important;
        justify-items: stretch !important;
    }
    
    /* Full width columns */
    .asset-info-col {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        gap: 4px !important; /* Reduced gap between inputs */
    }

    /* Children fill the column */
    .form-group, .asset-stats-row, .asset-ai-desc {
        width: 100% !important;
        margin-bottom: 4px !important; /* Reduced margin */
    }
    
    /* Button Wrapper */
    .asset-info-col > div:last-child {
        width: 100% !important;
        display: flex !important;
        justify-content: stretch !important;
        margin-top: 8px !important; /* Reduced margin */
    }
    
    #save-asset-btn {
        width: 100% !important;
        font-size: 12px !important;
        padding: 8px !important;
    }
    
    /* AI Desc Compact */
    .asset-ai-desc {
        padding: 6px !important; /* Reduced padding */
        margin-top: 4px !important;
    }
    
    .ai-label {
        font-size: 10px !important;
        margin-bottom: 2px !important;
    }
    
    .asset-ai-desc .ai-text {
        font-size: 10px !important;
    }

    /* Internal UI Scaling */
    .asset-stats-row {
        display: flex !important;
        flex-direction: column !important;
        gap: 4px !important; /* Reduced gap */
    }

    .asset-stat-item {
        width: 100% !important;
    }

    #edit-current-value-display {
        font-size: 16px !important;
        margin-top: 2px !important;
    }

    .form-input {
        font-size: 12px !important;
        padding: 6px !important;
        width: 100% !important;
        box-sizing: border-box;
        min-width: 0 !important;
    }

    .asset-chart-col {
        height: auto !important; /* Let height adapt */
        min-height: 120px !important;
        width: 100% !important;
        margin: 4px 0 !important;
    }

    /* Metrics Grid */
    .sell-metrics-grid, .rent-metrics-grid {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 4px !important; /* Reduced gap */
        width: 100% !important;
    }

    .sell-metric-card, .rent-metric-card {
        padding: 8px !important; /* Keep internal padding for readability */
        width: 100% !important;
        box-sizing: border-box;
        border-radius: 6px !important;
        margin-bottom: 0 !important;
    }

    .metric-value {
        font-size: 14px !important;
    }
    
    /* Force smaller text inside cards */
    .sell-metric-card *, .rent-metric-card * {
        font-size: 10px !important;
    }
    
    /* Exception for metric value to be slightly larger */
    .sell-metric-card .metric-value, .rent-metric-card .metric-value {
        font-size: 14px !important;
    }

    /* Simulator Controls Compact */
    .sim-controls-wrapper {
        gap: 2px !important;
    }

    .sim-btn {
        width: 20px !important; /* Even smaller buttons */
        height: 20px !important;
    }
    
    .sim-btn i {
        font-size: 8px !important;
    }

    .sim-input-container {
        max-width: none !important;
        flex: 1 !important;
    }

    #sim-price-input {
        font-size: 12px !important;
        width: 100% !important;
        padding: 2px !important;
        text-align: center !important;
        box-sizing: border-box;
    }

    .sim-currency-symbol {
        display: none !important;
    }

    .price-estimator-container {
        margin-top: 4px;
    }

    /* Titles */
    .section-title, h3 {
        font-size: 12px !important;
        margin-bottom: 8px !important;
        text-align: center !important; /* Center titles */
    }
    
    /* Labels */
    .form-label, label {
        font-size: 11px !important;
    }
    
    /* Global Safety for Mobile */
    * {
        min-width: 0; /* Allow flex items to shrink below content size */
        overflow-wrap: break-word; /* Prevent long text from overflowing */
    }
    
    body {
        overflow-x: hidden;
        width: 100%;
    }
}



/* Simulator Controls Base Styles */
.sim-controls-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
    gap: 8px;
}

.sim-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #CBD5E1;
    background: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sim-btn i {
    font-size: 12px;
}

.sim-input-container {
    position: relative;
    flex: 1;
    max-width: 140px;
    text-align: center;
}

.sim-currency-symbol {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-weight: 700;
    color: #0F172A;
    font-size: 20px;
}

.sim-input-field {
    width: 100%;
    padding: 4px 4px 4px 24px;
    border: 1px solid #CBD5E1;
    border-radius: 8px;
    font-size: 24px;
    font-weight: 700;
    color: #0F172A;
    text-align: center;
    background: transparent;
    outline: none;
}

/* Mobile Overrides for Simulator - REMOVED to avoid conflicts with main media query */
/* The styles previously here are now merged into the main @media (max-width: 768px) block above */



/* Valu Score Section Styles */
.valu-score-section {
    margin-top: 16px;
    width: 100%;
    animation: fadeIn 0.5s ease-out;
}

.score-btn {
    width: 100%;
    height: 42px;
    font-size: 13px;
    padding: 0 20px;
    background: #FFFFFF;
    color: #0F172A;
    border: 1px solid #E2E8F0;
    border-radius: 100px; /* Pill shape */
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
}

.score-btn:hover {
    background: #F8FAFC;
    border-color: #CBD5E1;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.score-btn:active {
    transform: translateY(0);
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.score-btn i {
    font-size: 14px;
    color: #8B5CF6;
}

.score-result-card {
    display: none;
    margin-top: 16px;
    background: #FFFFFF;
    padding: 20px;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    animation: slideDown 0.3s ease-out;
    width: 100%;
    box-sizing: border-box;
}

.score-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F1F5F9;
}

.score-label {
    font-size: 14px;
    font-weight: 600;
    color: #475569;
    display: flex;
    align-items: center;
    gap: 8px;
}

.score-percentage {
    font-size: 24px;
    font-weight: 800;
    letter-spacing: -0.5px;
}

.score-breakdown {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 12px;
    text-align: center;
}

.score-item {
    background: #F8FAFC;
    padding: 12px 8px;
    border-radius: 12px;
    border: 1px solid #F1F5F9;
}

.score-item-label {
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94A3B8;
    margin-bottom: 4px;
    font-weight: 600;
}

.score-item-value {
    font-size: 16px;
    font-weight: 700;
    color: #0F172A;
}

/* Rent Eligibility Message */
.rent-eligibility-msg {
    margin-top: 16px;
    padding: 16px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 500;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
}

/* Marketplace Modal */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease-out;
}

.modal-content {
    background: #FFFFFF;
    width: 90%;
    max-width: 400px;
    border-radius: 24px;
    padding: 32px;
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    animation: scaleUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes scaleUp {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

@keyframes slideDown {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}



/* Safety fixes for Valu Score Layout */
.valu-score-section {
    display: flex;
    flex-direction: column;
    box-sizing: border-box;
}

.score-result-card {
    width: 100%;
    box-sizing: border-box;
}


/* Marketplace Action Button */
.btn-marketplace-action {
    width: 100%;
    margin-top: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 12px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.2s ease;
    border: none;
    color: white;
    background: #0F172A; /* Default Dark */
}

.btn-marketplace-action:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.btn-marketplace-action:active {
    transform: translateY(0);
}

.btn-marketplace-action.remove {
    background: #EF4444;
}

.btn-marketplace-action.remove:hover {
    background: #DC2626;
}

/* Rent Eligibility Message Modifiers */
.rent-eligibility-msg.default {
    background: #F1F5F9;
    color: #475569;
    border: 1px solid transparent;
}

.rent-eligibility-msg.success {
    background: #F0FDF4;
    color: #166534;
    border: 1px solid #DCFCE7;
}

.rent-eligibility-msg.error {
    background: #FEF2F2;
    color: #991B1B;
    border: 1px solid #FEE2E2;
}

/* Modal Header & Icon */
.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-icon-wrapper {
    width: 48px;
    height: 48px;
    background: #DCFCE7;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 16px;
}

.modal-icon-wrapper i {
    font-size: 24px;
    color: #166534;
}


/* Score Color Modifiers */
.score-percentage.high { color: #10B981; }
.score-percentage.medium { color: #F59E0B; }
.score-percentage.low { color: #EF4444; }


/* Modal Buttons */
.modal-actions {
    display: flex;
    gap: 12px;
    margin-top: 24px;
}

.btn-modal-cancel, .btn-modal-confirm {
    flex: 1;
    padding: 12px;
    border-radius: 100px;
    font-weight: 600;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
    font-size: 14px;
}

.btn-modal-cancel {
    background: #F1F5F9;
    color: #475569;
}

.btn-modal-cancel:hover {
    background: #E2E8F0;
}

.btn-modal-confirm {
    background: #0F172A;
    color: white;
}

.btn-modal-confirm:hover {
    background: #1E293B;
    transform: translateY(-1px);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}


/* New Badge Style */
.card-badge.new {
    background: #FEF2F2 !important;
    color: #EF4444 !important;
    border: 1px solid #EF4444 !important;
}


/* Mobile Layout Reordering */
@media (max-width: 768px) {
    .container {
        display: flex;
        flex-direction: column;
    }

    .header {
        order: 0;
    }

    .portfolio-section {
        order: 1;
        margin-bottom: 24px;
    }

    .dashboard-grid {
        order: 2;
        display: flex;
        flex-direction: column;
        gap: 24px;
    }

    .stats-single-card-container {
        order: 1;
    }

    .history-main-card {
        order: 2;
    }

    .assets-section {
        order: 3;
    }
}

/* Stats Card Controls */
.stats-nav-controls {
    position: absolute;
    top: 24px;
    right: 24px;
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.8);
    padding: 4px 8px;
    border-radius: 100px;
    backdrop-filter: blur(4px);
    z-index: 10;
}

.stats-nav-btn {
    background: none;
    border: none;
    color: #64748B;
    cursor: pointer;
    padding: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color 0.2s;
}

.stats-nav-btn:hover {
    color: #0F172A;
}

.stats-counter {
    font-size: 12px;
    font-weight: 600;
    color: #475569;
    min-width: 32px;
    text-align: center;
}


/* Mobile Asset List & Overlay */
.mobile-asset-list {
    display: none;
    flex-direction: column;
    gap: 12px;
}

.mobile-asset-card {
    background: #FFFFFF;
    border: 1px solid #E2E8F0;
    border-radius: 16px;
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 16px;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: transform 0.2s;
    position: relative; /* For absolute positioning of More button */
}

.mobile-more-btn {
    position: absolute;
    top: 16px;
    right: 16px;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid #E2E8F0;
    background: #FFFFFF;
    color: #64748B;
    font-size: 12px;
    font-weight: 500;
    z-index: 2;
}

.mobile-asset-card:active {
    transform: scale(0.98);
}

.mobile-asset-thumb {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: #F8FAFC;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.mobile-asset-thumb img {
    width: 24px;
    height: 24px;
    object-fit: contain;
}

.mobile-asset-info {
    flex: 1;
    min-width: 0;
}

.mobile-asset-info h4 {
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.mobile-asset-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: #64748B;
}

.mobile-detail-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(4px);
    z-index: 2000;
    align-items: flex-end; /* Bottom Sheet */
    animation: fadeIn 0.2s ease-out;
}

.mobile-detail-content {
    background: #FFFFFF;
    width: 100%;
    max-height: 90vh;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    box-sizing: border-box;
    overflow-y: auto;
    animation: slideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}

.mobile-detail-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 1px solid #F1F5F9;
}

.mobile-detail-header h3 {
    font-size: 18px;
    font-weight: 700;
    color: #0F172A;
    margin: 0;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@media (max-width: 768px) {
    .table-container {
        display: none;
    }
    
    .mobile-asset-list {
        display: flex;
    }
}


/* Mobile Title Adjustment */
@media (max-width: 768px) {
    .container {
        padding: 0 24px !important; /* Added side padding */
    }
    
    .desktop-only-title {
        display: none !important;
    }
    .mobile-only-title {
        display: flex !important; /* Changed to flex for alignment */
        font-size: 20px !important; /* Bigger text */
        text-align: left !important;
        margin-bottom: 16px !important;
        padding-left: 4px; /* Slight alignment adjustment */
    }
    .assets-section {
        background: transparent !important;
        box-shadow: none !important;
        border: none !important; /* Remove grey line */
        padding: 0 !important;
    }
}

/* Mobile Overlay Improvements */
.mobile-detail-content {
    overflow: hidden; /* Prevent body scroll */
    display: flex;
    flex-direction: column;
    position: relative;
}

.mobile-detail-header {
    flex-shrink: 0;
    position: relative;
    padding-right: 40px; /* Space for close button */
}

.btn-close-overlay {
    position: absolute;
    top: 0;
    right: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: #F1F5F9;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #64748B;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-close-overlay:hover {
    background: #E2E8F0;
    color: #0F172A;
}

#mobile-edit-container-wrapper {
    flex: 1;
    overflow-y: auto;
    padding-bottom: 24px;
    /* Hide Scrollbar */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

#mobile-edit-container-wrapper::-webkit-scrollbar {
    display: none; /* Chrome/Safari */
}



/* AI Chat Section */
.chat-card {
    background: #FFFFFF;
    border-radius: 16px;
    border: 1px solid #E2E8F0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 500px;
}

.chat-header {
    padding: 16px;
    background: #F8FAFC;
    border-bottom: 1px solid #E2E8F0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-avatar {
    width: 40px;
    height: 40px;
    background: #0F172A;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
}

.chat-meta h3 {
    font-size: 16px;
    font-weight: 600;
    color: #0F172A;
    margin: 0;
}

.status-indicator {
    font-size: 12px;
    color: #10B981;
    display: flex;
    align-items: center;
    gap: 4px;
}

.status-indicator::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #10B981;
    border-radius: 50%;
    display: block;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 16px;
    background: #FFFFFF;
}

.message {
    display: flex;
    max-width: 80%;
}

.message.ai {
    align-self: flex-start;
}

.message.user {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.message-content {
    padding: 12px 16px;
    border-radius: 16px;
    font-size: 14px;
    line-height: 1.5;
}

.message.ai .message-content {
    background: #F1F5F9;
    color: #1E293B;
    border-bottom-left-radius: 4px;
}

.message.user .message-content {
    background: #0F172A;
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-area {
    padding: 16px;
    border-top: 1px solid #E2E8F0;
    display: flex;
    gap: 12px;
    background: #FFFFFF;
}

#chat-input {
    flex: 1;
    padding: 12px;
    border: 1px solid #E2E8F0;
    border-radius: 100px;
    outline: none;
    font-size: 14px;
    transition: border-color 0.2s;
}

#chat-input:focus {
    border-color: #0F172A;
}

#chat-send-btn {
    width: 42px;
    height: 42px;
    background: #0F172A;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

#chat-send-btn:hover {
    background: #1E293B;
}

@media (max-width: 768px) {
    .chat-card {
        height: 400px;
        border: none;
        border-radius: 0;
    }
    .chat-section {
        margin-top: 24px !important;
        padding: 0 12px; /* Match container padding */
    }
}


/* Add Button Styles */
.btn-black-slot {
    background-color: #000000;
    color: #FFFFFF;
    padding: 8px 24px;
    border-radius: 100px;
    font-weight: 600;
    font-size: 14px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: background-color 0.2s;
    cursor: pointer;
}

.btn-black-slot:hover {
    background-color: #333333;
}

/* Mobile FAB */
.mobile-fab-add {
    position: fixed;
    bottom: 90px; /* Above bottom nav */
    right: 24px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: #000000;
    color: #FFFFFF;
    font-size: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    z-index: 999;
    border: none;
    cursor: pointer;
    transition: transform 0.2s;
}

.mobile-fab-add:active {
    transform: scale(0.95);
}

@media (min-width: 769px) {
    .mobile-fab-add {
        display: none;
    }
}


@media (max-width: 768px) {
    .currency-symbol {
        display: none !important;
    }
    .price-input {
        padding-left: 16px !important;
    }
}


/* User Profile Header */
.user-profile-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-right: 20px;
    padding-right: 20px;
    border-right: 1px solid #E2E8F0;
}

.user-profile-header .profile-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; background-color: transparent; }

.user-profile-header .profile-name {
    font-size: 14px;
    font-weight: 600;
    color: #0F172A;
}

@media (max-width: 768px) {
    .user-profile-header {
        display: none;
    }
}

/* Bottom Nav Profile */
.bottom-nav-item .profile-avatar-small {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 2px;
    border: 2px solid transparent;
}

.bottom-nav-item.active .profile-avatar-small {
    border-color: #0F172A;
}


/* Mobile Profile Item Adjustments */
.bottom-nav-item:last-child span {
    display: none;
}

.bottom-nav-item .profile-avatar-small {
    width: 24px !important;
    height: 24px !important;
    margin-bottom: 0 !important;
}


/* Profile Page Styles */
.profile-page-container {
    max-width: 600px;
    margin: 0 auto;
    padding-bottom: 80px;
}

/* Chat Section */
.chat-section {
    margin-bottom: 32px;
}

.chat-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.chat-item { display: flex; align-items: center; gap: 16px; padding: 12px 16px; background: transparent; border-radius: 8px; border: none; cursor: pointer; transition: background-color 0.2s; }

.chat-item:hover {
    background-color: #F9FAFB;
}

.chat-avatar-wrapper {
    position: relative;
}

.chat-avatar {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    object-fit: cover;
}

.status-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid white;
}

.status-dot.online {
    background-color: #10B981;
}

.status-dot.offline {
    background-color: #9CA3AF;
}

.chat-content {
    flex: 1;
    min-width: 0; /* For text truncation */
}

.chat-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4px;
}

.chat-name {
    font-size: 16px;
    font-weight: 600;
    color: #111827;
}

.chat-time {
    font-size: 12px;
    color: #6B7280;
}

.chat-preview {
    font-size: 14px;
    color: #6B7280;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.chat-item.unread .chat-preview {
    color: #111827;
    font-weight: 500;
}

.unread-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #EF4444;
}

/* Profile Section */
.profile-section {
    margin-bottom: 32px;
}

.profile-card {
    background: white;
    border-radius: 24px;
    border: 1px solid #E5E7EB;
    overflow: hidden;
}

.profile-header-large { padding: 32px; display: flex; flex-direction: column; align-items: center; text-align: center; border-bottom: none; background-color: white; }

.profile-avatar-large {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin-bottom: 16px;
    border: 4px solid white;
    box-shadow: none;
}

.profile-name-large {
    font-size: 20px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 4px;
}

.profile-email {
    font-size: 14px;
    color: #6B7280;
}

.profile-options {
    padding: 8px 0;
}

.profile-option-item {
    display: flex;
    align-items: center;
    padding: 16px 24px;
    color: #374151;
    text-decoration: none;
    transition: background-color 0.2s;
}

.profile-option-item:hover {
    background-color: #F3F4F6;
}

.option-icon { width: 36px; height: 36px; border-radius: 8px; background-color: transparent; display: flex; align-items: center; justify-content: center; margin-right: 16px; color: #4B5563; font-size: 16px; }

.option-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.option-arrow {
    font-size: 14px;
    color: #9CA3AF;
}

.profile-option-item.logout {
    color: #EF4444;
    border-top: 1px solid #E5E7EB;
    margin-top: 8px;
}

.profile-option-item.logout .option-icon {
    background-color: #FEF2F2;
    color: #EF4444;
}


/* Desktop Profile Page Layout */
@media (min-width: 768px) {
    .profile-page-container {
        max-width: 1200px;
        display: grid;
        grid-template-columns: 1fr 1fr; /* Left Messages, Right Profile */
        gap: 40px;
        align-items: start;
    }

    .chat-section {
        margin-bottom: 0;
    }
    
    .profile-section {
        margin-bottom: 0;
    }
}

/* Ensure Section Titles are Left Aligned */
.section-title {
    text-align: left !important;
}





/* Force Chat Content to be Transparent/White */
.chat-content, .chat-header {
    background-color: transparent !important;
}

.chat-item {
    border-bottom: 1px solid #F3F4F6;
    border-radius: 0 !important;
    padding: 16px 0 !important;
}

.chat-item:last-child {
    border-bottom: none;
}

.chat-item:hover {
    background-color: transparent !important; /* Instagram doesn't have strong hover on mobile/web usually, or very subtle */
}

.chat-item:hover .chat-name {
    color: #6B7280; /* Subtle interaction */
}


/* Refine Chat List for Instagram Look */
.chat-list {
    gap: 0 !important; /* Remove gap for continuous list */
}

.chat-item {
    padding: 12px 16px !important; /* Add side padding back */
    background-color: #FFFFFF !important; /* Explicitly white to be safe */
}

.chat-item:hover {
    background-color: #FAFAFA !important; /* Very subtle hover */
}

.chat-content {
    background-color: transparent !important;
}

/* Ensure text colors are sharp */
.chat-name {
    color: #000000 !important;
    font-weight: 600;
}

.chat-preview {
    color: #737373 !important; /* Instagram gray */
}

.chat-time {
    color: #737373 !important;
}


/* Desktop Chat List Scroll */
@media (min-width: 768px) {
    .chat-list {
        max-height: 580px; /* Approximate height of profile card */
        overflow-y: auto;
        /* Hide Scrollbar */
        -ms-overflow-style: none;  /* IE and Edge */
        scrollbar-width: none;  /* Firefox */
    }
    
    .chat-list::-webkit-scrollbar {
        display: none;
    }
}


/* Mobile Chat List Scroll */
@media (max-width: 767px) {
    .chat-list {
        max-height: 400px; /* Crop list on mobile */
        overflow-y: auto;
        /* Hide Scrollbar */
        -ms-overflow-style: none;
        scrollbar-width: none;
    }
    
    .chat-list::-webkit-scrollbar {
        display: none;
    }
}


/* Increase Section Title Size for Profile Page */
.profile-page-container .section-title {
    font-size: 20px !important;
    font-weight: 700;
}


/* Increase Mobile Container Padding */
@media (max-width: 768px) {
    .container {
        padding-left: 24px !important;
        padding-right: 24px !important;
    }
}


/* Optimize Profile Page Mobile Layout */
@media (max-width: 768px) {
    .profile-page-container {
        width: 94%; /* Slightly reduce width relative to container */
        margin: 0 auto;
    }
}


/* Fix Mobile Horizontal Scroll & Layout */
@media (max-width: 768px) {
    /* html, body {
        overflow-x: hidden;
        width: 100%;
    } */

    .profile-page-container {
        width: 100% !important; /* Reset width to fill container */
        margin: 0 !important;
    }
    
    /* Adjust container padding if needed, but 24px is good for spacing */
}


/* Fix Mobile Z-Index Issues */
.modal-overlay {
    z-index: 3000 !important; /* Ensure it is above mobile detail overlay (2000) */
}

.mobile-asset-card {
    cursor: pointer; /* Feedback for clickable */
}

/* Ensure Mobile Detail Overlay is on top of Bottom Nav */
.mobile-detail-overlay {
    z-index: 2000 !important; /* Above bottom nav (100) */
}


/* Mobile Marketplace Text Size Reduction */
@media (max-width: 768px) {
    .market-card {
        padding: 0 !important; /* Remove padding to let image fill width */
    }

    .card-image-container {
        aspect-ratio: 1/1 !important; /* Make it square to take up roughly half the card */
        width: 100% !important;
    }

    .card-content {
        padding: 10px !important;
    }
    
    .market-card .card-title {
        font-size: 13px !important;
        margin-bottom: 4px !important;
    }
    
    /* Est Value (Black Price) */
    .market-card .stat-pair:last-child .stat-val {
        font-size: 16px !important; /* Reduced from 18px */
        line-height: 1.1 !important;
    }
    
    /* Original Value (Grey Price) */
    .market-card .stat-pair:first-child .stat-val {
        font-size: 10px !important;
    }

    /* Labels (Original Value, Est Value) */
    .market-card .stat-label {
        font-size: 9px !important; /* Reduced size */
    }
    
    /* Potential Badge (Green) */
    .market-card .potential-badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
    
    .market-card .card-badge {
        font-size: 9px !important;
        padding: 2px 6px !important;
    }
}

