:root {
    --color-primary: #100F0F;
    --color-secondary: #100F0F;
    --color-accent: #E2DCC8;
    --color-light: #F1F1F1;
}

html {
    scroll-behavior: smooth;
}

html,
body {
    font-family: 'Verdana';
    background-color: #fafafa;
}

a,
.btn-link {
    color: var(--color-secondary);
}

.btn-primary {
    color: #fff;
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.btn-primary:hover {
    background-color: #2a2a2a;
    border-color: #2a2a2a;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--color-secondary);
}

.content {
    padding-top: 1.1rem;
}

h1:focus {
    outline: none;
}

.valid.modified:not([type=checkbox]) {
    outline: 1px solid var(--color-accent);
}

.invalid {
    outline: 1px solid #e50000;
}

.validation-message {
    color: #e50000;
}

.blazor-error-boundary {
    background: url(data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNTYiIGhlaWdodD0iNDkiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyIgeG1sbnM6eGxpbms9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGxpbmsiIG92ZXJmbG93PSJoaWRkZW4iPjxkZWZzPjxjbGlwUGF0aCBpZD0iY2xpcDAiPjxyZWN0IHg9IjIzNSIgeT0iNTEiIHdpZHRoPSI1NiIgaGVpZh0PSI0OSIvPjwvY2xpcFBhdGg+PC9kZWZzPjxnIGNsaXAtcGF0aD0idXJsKCNjbGlwMCkiIHRyYW5zZm9ybT0idHJhbnNsYXRlKC0yMzUgLTUxKSI+PHBhdGggZD0iTTI2My41MDYgNTFDMjY0LjcxNyA1MSAyNjUuODEzIDUxLjQ4MzcgMjY2LjYwNiA1Mi4yNjU4TDI2Ny4wNTIgNTIuNzk4NyAyNjcuNTM5IDUzLjYyODMgMjkwLjE4NSA5Mi4xODMxIDI5MC41NDUgOTIuNzk1IDI5MC42NTYgOTIuOTk2QzI5MC44NzcgOTMuNTEzIDI5MSA5NC4wODE1IDI5MSA5NC42NzgyIDI5MSA5Ny4wNjUxIDI4OS4wMzggOTkgMjg2LjYxNyA5OUwyNDAuMzgzIDk5QzIzNy45NjMgOTkgMjM2IDk3LjA2NTEgMjM2IDk0LjY3ODIgMjM2IDk0LjM3OTkgMjM2LjAzMSA5NC4wODg2IDIzNi4wODkgOTMuODA3MkwyMzYuMzM4IDkzLjAxNjIgMjM2Ljg1OCA5Mi4xMzE0IDI1OS40NzMgNTMuNjI5NCAyNTkuOTYxIDUyLjc5ODUgMjYwLjQwNyA1Mi4yNjU4QzI2MS4yIDUxLjQ4MzcgMjYyLjI5NiA1MSAyNjMuNTA2IDUxWk0yNjMuNTg2IDY2LjAxODNDMjYwLjczNyA2Ni4wMTgzIDI1OS4zMTMgNjcuMTI0NSAyNTkuMzEzIDY5LjMzNyAyNTkuMzEzIDY5LjYxMDIgMjU5LjMzMiA2OS44NjA4IDI1OS4zNzEgNzAuMDg4N0wyNjEuNzk1IDg0LjAxNjEgMjY1LjM4IDg0LjAxNjEgMjY3LjgyMSA2OS43NDc1QzI2Ny44NiA2OS43MzA5IDI2Ny44NzkgNjkuNTg3NyAyNjcuODc5IDY5LjMxNzkgMjY3Ljg3OSA2Ny4xMTgyIDI2Ni40NDggNjYuMDE4MyAyNjMuNTg2IDY2LjAxODNaTTI2My41NzYgODYuMDU0N0MyNjEuMDQ5IDg2LjA1NDcgMjU5Ljc4NiA4Ny4zMDA1IDI1OS43ODYgODkuNzkyMSAyNTkuNzg2IDkyLjI4MzcgMjYxLjA0OSA5My41Mjk1IDI2My41NzYgOTMuNTI5NSAyNjYuMTE2IDkzLjUyOTUgMjY3LjM4NyA5Mi4yODM3IDI2Ny4zODcgODkuNzkyMSAyNjcuMzg3IDg3LjMwMDUgMjY2LjExNiA4Ni4wNTQ3IDI2My41NzYgODYuMDU0N1oiIGZpbGw9IiNGRkU1MDAiIGZpbGwtcnVsZT0iZXZlbm9kZCIvPjwvZz48L3N2Zz4=) no-repeat 1rem/1.8rem, #b32121;
    padding: 1rem 1rem 1rem 3.7rem;
    color: white;
}

.blazor-error-boundary::after {
    content: "An error has occurred."
}

.darker-border-checkbox.form-check-input {
    border-color: #929292;
}

/* Custom UI Tweaks */

/* Checkboxes */
.form-check-input {
    width: 1em;
    height: 1em;
    border-radius: 0.25rem;
    cursor: pointer;
}

.form-check-input:checked {
    background-color: var(--color-secondary);
    border-color: var(--color-secondary);
}

/* Rounded grid corners */
.table-responsive {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(16, 15, 15, 0.1);
    border: 1px solid var(--color-light);
    max-height: calc(100vh - 220px);
    overflow-y: auto;
}

/* Date Filter Dropdown */
.dropdown-menu {
    background-color: #fff;
    border: 1px solid var(--color-light);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.dropdown-menu .section-header {
    color: var(--color-primary);
    font-weight: 600;
    padding: 0.5rem 0;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #e9ecef;
    text-align: left;
}

.dropdown-menu .form-label {
    color: var(--color-primary);
    margin-bottom: 0.25rem;
}

.btn-outline-secondary {
    color: var(--color-primary);
    border-color: var(--color-light);
}

.btn-outline-secondary:hover {
    background-color: var(--color-accent);
    border-color: var(--color-secondary);
    color: var(--color-primary);
}

/* Square date filter button */
.date-filter-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 0 !important;
}

.table thead th {
    position: sticky;
    top: 0;
    z-index: 1;
}

.table {
    margin-bottom: 0;
    background-color: white;
}

.table th,
.table td {
    padding: 12px 8px;
    vertical-align: middle;
}

.table-dark {
    background-color: var(--color-primary);
}

.table-dark th {
    border-color: var(--color-primary);
}

.table-striped>tbody>tr:nth-of-type(odd) {
    --bs-table-accent-bg: var(--color-light);
}

.table-striped.table-hover tbody>tr:hover,
.table-striped.table-hover tbody>tr:hover>td,
.table-striped.table-hover tbody>tr:nth-of-type(odd):hover,
.table-striped.table-hover tbody>tr:nth-of-type(odd):hover>td {
    background-color: #cfcfcf !important;
}

/* Modal form adjustments */
.modal-body .form-label {
    font-size: 0.85rem;
    margin-bottom: 0.2rem;
    font-weight: 500;
    color: var(--color-primary);
    white-space: nowrap;
}

.modal-body .form-select {
    background-color: #fff;
    color: #212529;
    border: 1px solid #ced4da;
    border-radius: 0.375rem;
    padding: 0.375rem 2.25rem 0.375rem 0.75rem;
    height: calc(1.5em + 0.75rem + 2px);
    font-size: 1rem;
    line-height: 1.5;
}

/* Modal Sections */
.modal-section {
    margin-bottom: 1.5rem;
}

.modal-section:last-child {
    margin-bottom: 0;
}

.modal-section .section-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid #000;
}

.modal-header {
    background-color: var(--color-primary);
    color: white;
}

.modal-header .btn-close {
    filter: invert(1);
}

.modal-footer .btn-primary {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
}

.modal-footer .btn-primary:hover {
    background-color: #2a2a2a;
    border-color: #2a2a2a;
}

.modal-footer .btn-danger {
    background-color: #c94c4c;
    border-color: #c94c4c;
}

/* Number fields - hide spinners */
input[type=number]::-webkit-inner-spin-button,
input[type=number]::-webkit-outer-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

input[type=number] {
    -moz-appearance: textfield;
}

/* Date fields */
input[type="date"].form-control {
    height: calc(1.5em + 0.75rem + 2px);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    cursor: pointer;
    padding: 0.2rem;
    border-radius: 4px;
    opacity: 0.7;
    transition: opacity 0.2s, background-color 0.2s;
    filter: invert(0.3);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 1;
    background-color: rgba(16, 15, 15, 0.05);
}

/* Filters */
.filter-item {
    color: #999;
    font-size: 1.3rem;
    cursor: pointer;
    transition: color 0.2s;
}

.filter-item:hover {
    color: var(--color-secondary);
}

.filter-item.active {
    color: var(--color-primary);
    font-weight: 600;
}

.filter-separator {
    color: #ccc;
    margin: 0 0.75rem;
    font-size: 1.3rem;
}

.search-input {
    max-width: 300px;
    border-color: var(--color-secondary);
}

.search-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--color-primary);
}

/* Floating Sidebar */
.page {
    display: flex;
    min-height: 100vh;
}

.sidebar {
    position: fixed;
    top: 12px;
    bottom: 12px;
    left: 12px;
    width: 52px;
    background-color: var(--color-primary);
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(16, 15, 15, 0.3);
    padding: 10px 0;
    z-index: 1000;
    overflow: hidden;
    transition: width 0.2s ease;
}

.sidebar:hover {
    width: 180px;
}

.sidebar .nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.sidebar .nav-item {
    width: 100%;
    display: flex;
    justify-content: center;
    padding: 0;
}

.sidebar .sidebar-spacer {
    flex: 1;
}

.sidebar .logout-link {
    cursor: pointer;
}

.sidebar:hover .nav-item {
    padding: 0 6px;
}

.sidebar .nav-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: 10px;
    transition: background-color 0.2s, width 0.2s ease;
    overflow: hidden;
    white-space: nowrap;
    position: relative;
}

.sidebar:hover .nav-link {
    width: 100%;
    min-width: 36px;
    padding: 0 10px;
    justify-content: flex-start;
}

.sidebar .nav-link:hover {
    background-color: rgba(95, 149, 152, 0.2);
}

.sidebar .nav-link.active {
    background-color: var(--color-accent);
}

.nav-icon {
    width: 24px;
    height: 24px;
    opacity: 0.7;
    filter: invert(1);
    flex-shrink: 0;
}

.sidebar .nav-link.active .nav-icon {
    opacity: 1;
    filter: invert(0.15);
}

.sidebar .nav-label {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.85rem;
    margin-left: 0;
    max-width: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-width 0.2s ease, opacity 0.2s ease, margin-left 0.2s ease;
}

.sidebar:hover .nav-label {
    margin-left: 10px;
    max-width: 100px;
    opacity: 1;
}

.sidebar .nav-link.active .nav-label {
    color: var(--color-primary);
}

/* Page Titles */
.page-title {
    font-size: 1.75rem;
    font-weight: 600;
    color: var(--color-primary);
}

main {
    margin-left: 64px;
    flex: 1;
    padding: 0;
}

main .content {
    padding-top: 1.1rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}

/* Form Select */
.form-select {
    border: 1px solid #ced4da;
    background-color: #fff;
    color: #212529;
}

.form-select:focus {
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem var(--color-secondary);
}

/* Storage */
.storage-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.storage-section {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(16, 15, 15, 0.15);
}

.storage-section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 16px;
}

/* Dashboard */
.dashboard-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    grid-template-rows: auto auto auto;
    gap: 20px;
    margin-top: 24px;
    padding-bottom: 80px;
}

.dashboard-grid > .stat-card:nth-child(1) { grid-column: 1; grid-row: 1; }
.dashboard-grid > .stat-card:nth-child(2) { grid-column: 2; grid-row: 1; }
.dashboard-grid > .stat-card:nth-child(3) { grid-column: 3; grid-row: 1; }

.dashboard-grid > .pipeline-card {
    grid-column: 1 / 3;
    grid-row: 2;
}

.dashboard-grid > .dashboard-recently-sold {
    grid-column: 3;
    grid-row: 2 / 4;
    height: 100%;
}

.dashboard-grid > .dashboard-bottom {
    grid-column: 1 / 3;
    grid-row: 3;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    background: none;
    border: none;
    box-shadow: none;
    padding: 0;
    border-radius: 0;
}

/* Cards */
.stat-card,
.pipeline-card,
.chart-card,
.sources-card,
.recent-sales-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(16, 15, 15, 0.06), 0 4px 12px rgba(16, 15, 15, 0.04);
    border: 1px solid rgba(226, 220, 200, 0.5);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.stat-card:hover,
.pipeline-card:hover,
.chart-card:hover,
.sources-card:hover,
.recent-sales-card:hover {
    box-shadow: 0 4px 12px rgba(16, 15, 15, 0.08), 0 8px 24px rgba(16, 15, 15, 0.06);
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 20px 0;
}

/* Stat Cards - base (used by Settings profile card too) */
.stat-card {
    background: #fffdfa;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 6px 18px rgba(16, 15, 15, 0.08);
    border: 1px solid rgba(226, 220, 200, 0.7);
}

/* Dashboard-specific card overrides */
.dashboard-grid .stat-card,
.dashboard-grid .pipeline-card,
.dashboard-grid .chart-card,
.dashboard-grid .sources-card,
.dashboard-grid .recent-sales-card {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 1px 3px rgba(16, 15, 15, 0.06), 0 4px 12px rgba(16, 15, 15, 0.04);
    border: 1px solid rgba(226, 220, 200, 0.5);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.dashboard-grid .stat-card:hover,
.dashboard-grid .pipeline-card:hover,
.dashboard-grid .chart-card:hover,
.dashboard-grid .sources-card:hover,
.dashboard-grid .recent-sales-card:hover {
    box-shadow: 0 4px 12px rgba(16, 15, 15, 0.08), 0 8px 24px rgba(16, 15, 15, 0.06);
}

.dashboard-grid .stat-card {
    display: flex;
    align-items: center;
    gap: 16px;
}

.card-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 20px 0;
}

.stat-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: rgba(16, 15, 15, 0.06);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 22px;
    height: 22px;
}

.stat-content {
    min-width: 0;
}

.stat-label {
    font-size: 0.8rem;
    color: #888;
    margin-bottom: 4px;
    font-weight: 500;
}

.stat-value {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1.2;
}

.stat-tooltip {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ddd;
    color: #666;
    font-size: 0.6rem;
    font-weight: 700;
    margin-left: 4px;
    cursor: help;
    position: relative;
}

.stat-tooltip::after {
    content: attr(data-tooltip);
    position: absolute;
    bottom: 140%;
    left: 50%;
    transform: translateX(-50%);
    background: #333;
    color: white;
    padding: 5px 10px;
    border-radius: 6px;
    font-size: 0.7rem;
    font-weight: 500;
    white-space: nowrap;
    z-index: 1000;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.2s;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.stat-tooltip:hover::after {
    opacity: 1;
}

/* Pipeline */
.pipeline {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    padding: 8px 0;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    flex: 0 0 auto;
}

.step-badge {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    background: var(--color-primary);
    color: white;
    font-size: 1.15rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(16, 15, 15, 0.2);
}

.step-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--color-primary);
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.pipeline-arrow {
    width: 20px;
    height: 20px;
    color: #bbb;
    flex-shrink: 0;
    margin: 0 8px;
    margin-bottom: 18px;
}

/* Bar Chart */
.bar-chart {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    gap: 16px;
    height: 200px;
    padding-top: 10px;
}

.bar-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex: 1;
    height: 100%;
    justify-content: flex-end;
    min-width: 0;
}

.bar-wrapper {
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    height: 160px;
}

.bar {
    width: 100%;
    max-width: 36px;
    background: linear-gradient(180deg, var(--color-primary) 0%, #3a3a3a 100%);
    border-radius: 6px 6px 0 0;
    min-height: 4px;
    transition: height 0.5s ease;
}

.bar-label {
    font-size: 0.75rem;
    color: #888;
    margin-top: 10px;
    font-weight: 500;
    text-align: center;
}

.bar-value {
    font-size: 0.7rem;
    color: #aaa;
    margin-top: 4px;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* Sources */
.sources-body {
    display: flex;
    align-items: center;
    gap: 24px;
}

.pie-chart {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    flex-shrink: 0;
}

.pie-legend {
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 0.875rem;
    color: var(--color-primary);
}

.legend-color {
    width: 10px;
    height: 10px;
    border-radius: 3px;
    flex-shrink: 0;
}

.legend-name {
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.legend-count {
    font-weight: 600;
    color: #888;
    font-size: 0.8rem;
}

/* Recently Sold */
.dashboard-grid .recent-sales-card {
    padding: 0;
    overflow: hidden;
}

.dashboard-grid .recent-sales-card .card-title {
    padding: 24px 24px 0 24px;
}

.sales-table-wrap {
    overflow-x: auto;
}

.sales-table {
    width: 100%;
    border-collapse: collapse;
}

.sales-table thead th {
    padding: 12px 24px;
    font-size: 0.75rem;
    font-weight: 600;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    text-align: left;
    border-bottom: 1px solid rgba(16, 15, 15, 0.08);
    background: #fafafa;
    white-space: nowrap;
}

.sales-table thead th.text-end {
    text-align: right;
}

.sales-table tbody td {
    padding: 14px 24px;
    font-size: 0.9rem;
    color: var(--color-primary);
    border-bottom: 1px solid rgba(16, 15, 15, 0.05);
    vertical-align: middle;
}

.sales-table tbody tr:last-child td {
    border-bottom: none;
}

.sales-table tbody tr:hover td {
    background: rgba(226, 220, 200, 0.15);
}

.sales-table .item-name {
    font-weight: 500;
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.sales-table .price {
    font-weight: 600;
    color: var(--color-primary);
    white-space: nowrap;
}

.sales-table .date {
    color: #888;
    font-size: 0.85rem;
    white-space: nowrap;
}

.dashboard-grid .recent-sales-card .text-muted {
    padding: 24px;
    color: #888 !important;
    margin: 0;
}

/* Auth pages */
.auth-container {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background-color: #fafafa;
}

.auth-card {
    background: var(--color-accent);
    border-radius: 12px;
    padding: 32px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 4px 12px rgba(16, 15, 15, 0.15);
}

.auth-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 24px;
    text-align: center;
}

.auth-btn {
    background-color: var(--color-primary);
    border-color: var(--color-primary);
    margin-top: 8px;
}

.auth-btn:hover {
    background-color: #2a2a2a;
}

.auth-error {
    background-color: #f8d7da;
    color: #842029;
    padding: 10px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-size: 0.9rem;
}

.auth-footer {
    text-align: center;
    margin-top: 20px;
    font-size: 0.9rem;
    color: var(--color-primary);
}

.auth-footer a {
    color: var(--color-primary);
    font-weight: 600;
}

/* Settings Page */
.settings-grid {
    max-width: 720px;
}

.settings-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(16, 15, 15, 0.1);
    border: 1px solid var(--color-light);
    overflow: hidden;
    color: var(--color-primary);
}

.settings-card-header {
    padding: 16px 20px;
    border-bottom: 1px solid #f0f0f0;
}

.settings-card-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-primary);
    margin: 0 0 2px 0;
}

.settings-card-desc {
    font-size: 0.8rem;
    color: #888;
    margin: 0;
}

.settings-card-body {
    padding: 16px 20px;
}

.settings-label {
    display: block;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: 2px;
}

.settings-message {
    margin-top: 8px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 0.8rem;
    font-weight: 500;
}

.settings-message-success {
    background: #f0f0f0;
    color: var(--color-primary);
}

.settings-message-error {
    background: #f0f0f0;
    color: var(--color-primary);
    border: 1px solid #ccc;
}

.profile-avatar {
    width: 48px;
    height: 48px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 0.95rem;
    flex-shrink: 0;
}

.subscription-card {
    background: var(--color-light);
    border-radius: 8px;
    padding: 16px;
}

.settings-card .form-control,
.settings-card .form-select {
    background-color: #fff;
    color: var(--color-primary);
}

.settings-card hr {
    border-color: #f0f0f0;
}

/* Plan Options */
.plan-option {
    background: #fafafa;
    border-color: #e0e0e0;
    transition: border-color 0.15s ease;
}

.plan-option:hover {
    border-color: var(--color-primary);
}

.auth-demo {
    font-size: 0.8rem;
    color: #666;
    margin-top: 12px;
}

.auth-main {
    margin-left: 0 !important;
    width: 100%;
}

/* Auth Pages - Clean Monochrome */
.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: transparent;
    padding: 20px;
}

.auth-page .auth-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 380px;
}

.auth-page .auth-container>* {
    width: 100%;
}

.auth-page form {
    width: 100%;
}

.auth-page .auth-card {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
    max-width: 380px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    animation: authCardIn 0.3s ease;
}

.auth-card-flat {
    background: white;
    border-radius: 16px;
    padding: 32px;
    width: 100%;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.auth-header {
    text-align: center;
    margin-bottom: 28px;
}

.auth-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #100F0F;
    margin: 0 0 8px 0;
}

.auth-header p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.auth-page .form-group {
    margin-bottom: 20px;
}

.auth-page .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.auth-page .form-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    color: #100F0F;
    background-color: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.auth-page .form-input:focus {
    outline: none;
    border-color: #100F0F;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(16, 15, 15, 0.08);
}

.auth-page .form-input::placeholder {
    color: #9ca3af;
}

.auth-options {
    display: flex;
    justify-content: flex-end;
    margin-bottom: 24px;
}

.link-button {
    background: none;
    border: none;
    color: #100F0F;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    text-decoration: none;
    transition: opacity 0.2s;
}

.link-button:hover {
    opacity: 0.7;
}

.auth-submit {
    width: 100%;
    height: 52px;
    background-color: #100F0F;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.auth-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16, 15, 15, 0.25);
    background-color: #2a2a2a;
}

.auth-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.spinner {
    width: 18px;
    height: 18px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

.auth-page .auth-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

.auth-page .auth-footer span {
    color: #6b7280;
    font-size: 0.95rem;
}

.auth-link {
    color: #100F0F;
    font-weight: 600;
    text-decoration: none;
    margin-left: 4px;
    transition: opacity 0.2s;
}

.auth-link:hover {
    opacity: 0.7;
}

.auth-demo {
    margin-top: 20px;
    padding: 14px 24px;
    background: rgba(16, 15, 15, 0.04);
    border-radius: 12px;
    border: 1px solid rgba(16, 15, 15, 0.08);
    color: #666;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.auth-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.auth-error svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.auth-success {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #16a34a;
    padding: 14px 16px;
    border-radius: 10px;
    margin-bottom: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
}

.auth-success svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.back-button {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: #666;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    transition: color 0.2s;
}

.back-button:hover {
    color: #100F0F;
}

/* Landing Page */
.landing-page {
    min-height: 100vh;
    background-color: #F1F1F1;
    display: flex;
    flex-direction: column;
    position: relative;
}

.landing-page::before {
    content: '';
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    height: calc(100vh - 72px);
    background: radial-gradient(ellipse at 20% 50%, rgba(226, 220, 200, 0.8) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(226, 220, 200, 0.6) 0%, transparent 50%),
        radial-gradient(ellipse at 50% 50%, rgba(226, 220, 200, 0.4) 0%, transparent 40%);
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 60%, transparent 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 10%, black 60%, transparent 100%);
}

.landing-hero {
    position: relative;
    z-index: 1;
}

.landing-nav {
    padding: 14px 32px;
    display: flex;
    justify-content: center;
    position: sticky;
    top: 0;
    z-index: 20;
    background: #100F0F;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-nav-content {
    width: 100%;
    max-width: 1200px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-logo {
    font-size: 1.25rem;
    font-weight: 600;
    color: #100F0F;
    letter-spacing: -0.02em;
}

.landing-logo-image {
    width: 78px;
    height: auto;
    object-fit: contain;
    display: block;
    filter: drop-shadow(0 1px 3px rgba(0, 0, 0, 0.28));
}

.landing-nav-buttons {
    display: flex;
    gap: 12px;
    align-items: center;
}

.landing-nav-login {
    background-color: transparent;
    border: none;
    color: #F1F1F1;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.2s ease;
}

.landing-nav-login:hover {
    color: rgba(241, 241, 241, 0.72);
}

.landing-nav-cta {
    background-color: #F1F1F1;
    border: 1.5px solid #F1F1F1;
    color: #100F0F;
    padding: 8px 20px;
    border-radius: 24px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.landing-nav-cta:hover {
    background-color: transparent;
    color: #F1F1F1;
}

.landing-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 88px 32px 96px;
    max-width: 1200px;
    margin: 0 auto;
    width: 100%;
    position: relative;
}

.landing-hero {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 64px;
    align-items: center;
    flex: 1;
    min-height: 520px;
}

.landing-hero-content {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: relative;
    z-index: 1;
}

.landing-visual {
    position: relative;
    z-index: 1;
}

.landing-headline {
    font-size: 3.5rem;
    font-weight: 600;
    color: #100F0F;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin: 0;
}

.landing-headline-accent {
    font-family: Georgia, 'Times New Roman', Times, serif;
    font-style: italic;
    font-weight: 400;
}

.landing-subtext {
    font-size: 1.15rem;
    color: #666;
    line-height: 1.6;
    max-width: 420px;
    margin: 0;
}

.landing-cta-group {
    display: flex;
    gap: 16px;
    align-items: center;
    margin-top: 8px;
}

.landing-cta {
    background-color: #100F0F;
    color: #F1F1F1;
    border: none;
    padding: 16px 40px;
    border-radius: 32px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.landing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(16, 15, 15, 0.2);
}

.landing-cta-secondary {
    background-color: transparent;
    color: #100F0F;
    border: 1.5px solid #100F0F;
    padding: 16px 40px;
    border-radius: 32px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.landing-cta-secondary:hover {
    background-color: #100F0F;
    color: #F1F1F1;
    transform: translateY(-2px);
}

.landing-visual {
    position: relative;
    height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.landing-screenshot {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.laptop-frame {
    position: relative;
    width: min(100%, 520px);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.laptop-screen {
    background: #100F0F;
    border-radius: 16px 16px 0 0;
    padding: 12px 12px 0 12px;
    box-shadow: 0 20px 60px rgba(16, 15, 15, 0.25);
    overflow: hidden;
}

.laptop-screen img,
.laptop-screen video {
    border-radius: 8px 8px 0 0;
    width: 100%;
    height: auto;
    display: block;
}

.laptop-base {
    width: min(108%, 560px);
    height: 16px;
    background: linear-gradient(180deg, #2a2a2a 0%, #100F0F 100%);
    border-radius: 0 0 8px 8px;
    position: relative;
    box-shadow: 0 10px 30px rgba(16, 15, 15, 0.3);
}

.laptop-notch {
    position: absolute;
    left: 50%;
    top: 0;
    transform: translateX(-50%);
    width: 60px;
    height: 6px;
    background: #444;
    border-radius: 0 0 4px 4px;
}

.floating-card {
    position: absolute;
    background: #E2DCC8;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(16, 15, 15, 0.08);
}

.card-primary {
    width: 220px;
    height: 140px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.card-secondary {
    width: 160px;
    height: 100px;
    top: 20%;
    right: 10%;
    background: #100F0F;
    z-index: 3;
}

.card-tertiary {
    width: 140px;
    height: 90px;
    bottom: 15%;
    left: 5%;
    background: #F1F1F1;
    border: 2px solid #E2DCC8;
    z-index: 1;
}

.card-line {
    height: 12px;
    background: #100F0F;
    border-radius: 6px;
    margin-bottom: 12px;
    width: 100%;
}

.card-line.short {
    width: 60%;
}

.card-dot {
    width: 32px;
    height: 32px;
    background: #E2DCC8;
    border-radius: 50%;
    margin-bottom: 16px;
}

.card-bar {
    height: 8px;
    background: #E2DCC8;
    border-radius: 4px;
    width: 80%;
}

.mini-bar {
    height: 6px;
    background: #100F0F;
    border-radius: 3px;
    margin-bottom: 8px;
    width: 100%;
}

.mini-bar.short {
    width: 50%;
}

.landing-features {
    display: flex;
    gap: 48px;
    margin-top: 64px;
    padding-top: 48px;
    border-top: 1px solid rgba(16, 15, 15, 0.1);
}

.feature {
    display: flex;
    align-items: center;
    gap: 12px;
}

.feature-marker {
    width: 8px;
    height: 8px;
    background: #100F0F;
    border-radius: 50%;
}

.feature-label {
    font-size: 0.95rem;
    color: #666;
    font-weight: 500;
}

@media (max-width: 900px) {
    .landing-page::before {
        top: 0;
        height: 100%;
    }

    .landing-main {
        padding: 48px 24px 72px;
    }

    .landing-hero {
        grid-template-columns: 1fr;
        gap: 32px;
        min-height: auto;
    }

    .landing-hero-content {
        align-items: center;
        text-align: center;
    }

    .landing-headline {
        font-size: 2.5rem;
    }

    .landing-subtext {
        max-width: 560px;
    }

    .landing-visual {
        height: auto;
        min-height: 0;
        padding-inline: 12px;
    }

    .landing-features {
        flex-direction: column;
        gap: 16px;
    }
}

.how-it-works-section {
    background-color: #F1F1F1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 32px;
    position: relative;
    z-index: 1;
}

.how-it-works-section::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 200px;
    background: linear-gradient(to bottom, transparent 0%, #FAFAFA 100%);
    pointer-events: none;
}

.how-it-works-content {
    width: 100%;
    max-width: 1100px;
    position: relative;
    z-index: 1;
}

.how-it-works-title {
    font-size: 2.5rem;
    font-weight: 600;
    color: #100F0F;
    letter-spacing: -0.03em;
    margin-bottom: 64px;
    text-align: center;
}

.how-it-works-grid {
    display: flex;
    flex-direction: column;
    gap: 80px;
}

.how-card {
    display: flex;
    align-items: center;
    gap: 64px;
}

.how-card:nth-child(even) {
    flex-direction: row-reverse;
}

.how-visual {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #100F0F;
    border-radius: 20px;
    padding: 48px;
    min-height: 280px;
}

.how-card-copy {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.how-card-title {
    font-size: 1.5rem;
    font-weight: 600;
    color: #100F0F;
    line-height: 1.3;
    margin: 0;
}

.how-card-desc {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
    max-width: 400px;
}

.ebay-link-demo {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ebay-link-input {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.ebay-link-label {
    font-size: 0.75rem;
    color: rgba(241, 241, 241, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.ebay-link-field {
    background: rgba(241, 241, 241, 0.1);
    border: 1px solid rgba(226, 220, 200, 0.3);
    border-radius: 10px;
    padding: 12px 14px;
    font-size: 0.85rem;
    color: #F1F1F1;
}

.ebay-link-auto {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ebay-link-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

.ebay-link-row-label {
    font-size: 0.8rem;
    color: rgba(241, 241, 241, 0.6);
}

.ebay-link-row-value {
    font-size: 0.9rem;
    font-weight: 600;
    color: #E2DCC8;
}

.ebay-link-row-value.active {
    color: #27AE60;
}

.ebay-sync-demo {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.ebay-sync-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    background: rgba(241, 241, 241, 0.08);
    border: 1px solid rgba(241, 241, 241, 0.12);
    border-radius: 12px;
    padding: 14px 16px;
}

.ebay-sync-name {
    font-size: 0.9rem;
    color: #F1F1F1;
    font-weight: 500;
}

.ebay-sync-badge {
    font-size: 0.75rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.ebay-sync-badge.sold {
    color: #1E8449;
    background: rgba(39, 174, 96, 0.15);
}

.ebay-sync-badge.listed {
    color: #E2DCC8;
    background: rgba(226, 220, 200, 0.15);
}

/* Add Item Demo */
.add-item-demo {
    display: flex;
    align-items: center;
    gap: 24px;
    width: 100%;
    max-width: 320px;
}

.add-form {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.form-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.form-label {
    font-size: 0.75rem;
    color: rgba(241, 241, 241, 0.6);
    width: 44px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.form-input,
.form-select {
    flex: 1;
    background-color: rgba(241, 241, 241, 0.1);
    border: 1px solid rgba(226, 220, 200, 0.3);
    border-radius: 8px;
    padding: 10px 12px;
    font-size: 0.9rem;
    color: #F1F1F1;
}

.form-select {
    background-color: rgba(226, 220, 200, 0.15);
    border-color: #E2DCC8;
}

.location-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    background-color: #E2DCC8;
    border-radius: 16px;
    padding: 20px 16px;
    min-width: 72px;
}

.location-icon {
    width: 20px;
    height: 20px;
    background-color: #100F0F;
    border-radius: 50%;
    position: relative;
}

.location-icon::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 0;
    height: 0;
    border-left: 4px solid transparent;
    border-right: 4px solid transparent;
    border-top: 6px solid #E2DCC8;
}

.location-text {
    font-size: 1rem;
    font-weight: 700;
    color: #100F0F;
}

/* Search Demo */
.search-demo {
    width: 100%;
    max-width: 280px;
}

.search-box {
    display: flex;
    align-items: center;
    gap: 12px;
    background-color: rgba(241, 241, 241, 0.1);
    border: 1px solid rgba(241, 241, 241, 0.2);
    border-radius: 10px;
    padding: 14px 16px;
    margin-bottom: 16px;
}

.search-icon {
    width: 18px;
    height: 18px;
    color: rgba(241, 241, 241, 0.5);
    flex-shrink: 0;
}

.search-text {
    font-size: 0.95rem;
    color: #F1F1F1;
}

.search-result {
    background-color: rgba(226, 220, 200, 0.15);
    border-radius: 10px;
    padding: 16px;
}

.result-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.result-name {
    font-size: 1rem;
    color: #F1F1F1;
    font-weight: 500;
}

.result-location {
    font-size: 0.85rem;
    color: #E2DCC8;
}

/* Pipeline Demo */
.pipeline-demo {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: nowrap;
}

.pipeline-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.step-dot {
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: rgba(226, 220, 200, 0.25);
    border: 2px solid rgba(226, 220, 200, 0.35);
}

.step-dot.active {
    background-color: #E2DCC8;
    border-color: #E2DCC8;
}

.step-label {
    font-size: 0.9rem;
    color: rgba(241, 241, 241, 0.7);
    font-weight: 500;
}

.pipeline-arrow {
    width: 32px;
    height: 2px;
    background-color: rgba(226, 220, 200, 0.3);
    position: relative;
}

.pipeline-arrow::after {
    content: '';
    position: absolute;
    right: 0;
    top: -5px;
    width: 0;
    height: 0;
    border-top: 6px solid transparent;
    border-bottom: 6px solid transparent;
    border-left: 10px solid rgba(226, 220, 200, 0.3);
}

/* Stats Demo */
.stats-demo {
    width: 100%;
    max-width: 280px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.stats-row {
    display: flex;
    gap: 16px;
}

.stat-mini {
    flex: 1;
    background-color: rgba(241, 241, 241, 0.1);
    border: 1px solid rgba(241, 241, 241, 0.15);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stat-mini-label {
    font-size: 0.75rem;
    color: rgba(241, 241, 241, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-mini-value {
    font-size: 1.25rem;
    font-weight: 600;
    color: #F1F1F1;
}

.stat-mini-bar {
    height: 4px;
    background-color: rgba(226, 220, 200, 0.2);
    border-radius: 2px;
    overflow: hidden;
}

.stat-mini-fill {
    height: 100%;
    background-color: #E2DCC8;
    border-radius: 2px;
}

.stat-mini-fill.profit {
    background-color: #A8D5BA;
}

.chart-mini {
    background-color: rgba(241, 241, 241, 0.1);
    border: 1px solid rgba(241, 241, 241, 0.15);
    border-radius: 12px;
    padding: 16px;
}

.chart-mini-title {
    font-size: 0.75rem;
    color: rgba(241, 241, 241, 0.6);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
}

.chart-mini-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    height: 60px;
    gap: 8px;
}

.chart-mini-bar {
    flex: 1;
    background-color: rgba(226, 220, 200, 0.3);
    border-radius: 4px 4px 0 0;
    min-height: 8px;
    transition: background-color 0.2s;
}

.chart-mini-bar.active {
    background-color: #E2DCC8;
}

@media (max-width: 900px) {
    .how-it-works-section {
        padding: 80px 24px;
    }

    .how-it-works-title {
        font-size: 2rem;
        margin-bottom: 48px;
    }

    .how-it-works-grid {
        gap: 64px;
    }

    .how-card,
    .how-card:nth-child(even) {
        flex-direction: column;
        gap: 32px;
    }

    .how-visual {
        width: 100%;
        min-height: 240px;
        padding: 32px;
    }

    .how-card-copy {
        text-align: center;
        align-items: center;
    }

    .how-card-desc {
        max-width: 100%;
    }
}

/* Login Modal */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(16, 15, 15, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 20px;
}

.login-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 420px;
    position: relative;
    box-shadow: 0 25px 80px rgba(16, 15, 15, 0.35);
    animation: modalIn 0.3s ease;
}

@keyframes modalIn {
    from {
        opacity: 0;
        transform: scale(0.95) translateY(-10px);
    }

    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 36px;
    height: 36px;
    border: none;
    background: transparent;
    border-radius: 10px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    transition: background-color 0.2s, color 0.2s;
}

.modal-close:hover {
    background-color: #f1f1f1;
    color: #100F0F;
}

.modal-close svg {
    width: 20px;
    height: 20px;
}

.login-modal-header {
    text-align: center;
    margin-bottom: 28px;
}

.login-modal-header h2 {
    font-size: 1.75rem;
    font-weight: 600;
    color: #100F0F;
    margin: 0 0 8px 0;
}

.login-modal-header p {
    font-size: 1rem;
    color: #666;
    margin: 0;
}

.login-modal .form-group {
    margin-bottom: 20px;
}

.login-modal label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.login-modal .form-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    color: #100F0F;
    background-color: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.login-modal .form-input:focus {
    outline: none;
    border-color: #100F0F;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(16, 15, 15, 0.08);
}

.login-modal .form-input::placeholder {
    color: #9ca3af;
}

.login-submit {
    width: 100%;
    height: 52px;
    background-color: #100F0F;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 8px;
    transition: transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.login-submit:hover:not(:disabled) {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(16, 15, 15, 0.25);
    background-color: #2a2a2a;
}

.login-submit:disabled {
    opacity: 0.7;
    cursor: not-allowed;
}

.login-error {
    background-color: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
    padding: 14px 16px;
    border-radius: 10px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.login-error svg {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.modal-footer {
    text-align: center;
    margin-top: 24px;
    padding-top: 24px;
    border-top: 1px solid #e5e7eb;
}

/* Signup Modal */
.signup-modal {
    background: white;
    border-radius: 20px;
    padding: 40px;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 25px 80px rgba(16, 15, 15, 0.35);
    animation: modalIn 0.3s ease;
}

.signup-modal .form-group {
    margin-bottom: 20px;
}

.signup-modal label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: #374151;
    margin-bottom: 8px;
}

.signup-modal .form-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    color: #100F0F;
    background-color: #fafafa;
    transition: border-color 0.2s, box-shadow 0.2s, background-color 0.2s;
}

.signup-modal .form-input:focus {
    outline: none;
    border-color: #100F0F;
    background-color: white;
    box-shadow: 0 0 0 4px rgba(16, 15, 15, 0.08);
}

.signup-modal .form-input::placeholder {
    color: #9ca3af;
}

.plan-options {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.plan-card-modal {
    background: #fafafa;
    border: 2px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

.plan-card-modal:hover {
    border-color: #100F0F;
}

.plan-card-modal.selected {
    border-color: #100F0F;
    background: white;
    box-shadow: 0 0 0 4px rgba(16, 15, 15, 0.08);
}

.plan-card-modal .plan-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.plan-card-modal .plan-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #100F0F;
    margin: 0;
}

.plan-card-modal .plan-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #100F0F;
}

.plan-card-modal .plan-period {
    font-size: 0.9rem;
    font-weight: 400;
    color: #666;
}

.plan-card-modal .plan-features {
    list-style: none;
    padding: 0;
    margin: 0;
    font-size: 0.9rem;
    color: #666;
}

.plan-card-modal .plan-features li {
    padding: 4px 0;
    padding-left: 20px;
    position: relative;
}

.plan-card-modal .plan-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #100F0F;
    font-weight: 600;
}

.plan-card-modal .plan-badge {
    position: absolute;
    top: -10px;
    right: 12px;
    background: #100F0F;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-card-modal .plan-selected-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: #100F0F;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.plan-actions-modal {
    display: flex;
    gap: 12px;
}

.plan-actions-modal .back-button {
    flex: 1;
    height: 52px;
    background: transparent;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    color: #666;
    cursor: pointer;
    transition: all 0.2s ease;
}

.plan-actions-modal .back-button:hover:not(:disabled) {
    border-color: #100F0F;
    color: #100F0F;
}

.plan-actions-modal .login-submit {
    flex: 2;
}

.modal-footer span {
    color: #6b7280;
    font-size: 0.95rem;
}

.modal-footer .link-button {
    background: none;
    border: none;
    color: #100F0F;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-left: 4px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.modal-footer .link-button:hover {
    opacity: 0.7;
}

@media (max-width: 600px) {
    .landing-nav {
        padding: 12px 20px;
    }

    .landing-nav-content {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .landing-logo-image {
        width: 64px;
    }

    .landing-nav-buttons {
        width: 100%;
        justify-content: center;
        flex-wrap: wrap;
    }

    .landing-main {
        padding: 48px 20px 56px;
    }

    .landing-headline {
        font-size: 1.9rem;
        line-height: 1.08;
    }

    .landing-headline br {
        display: none;
    }

    .landing-subtext {
        font-size: 1rem;
    }

    .landing-cta-group {
        flex-direction: column;
        width: 100%;
    }

    .landing-cta,
    .landing-cta-secondary {
        width: 100%;
        text-align: center;
        padding: 14px 24px;
    }

    .landing-visual {
        padding-inline: 0;
    }

    .laptop-frame {
        width: min(100%, 340px);
    }

    .laptop-screen {
        padding: 8px 8px 0 8px;
        border-radius: 12px 12px 0 0;
    }

    .laptop-screen img,
    .laptop-screen video {
        border-radius: 6px 6px 0 0;
    }

    .laptop-base {
        height: 12px;
    }

    .laptop-notch {
        width: 44px;
        height: 5px;
    }

    .card-primary {
        width: 180px;
        height: 120px;
    }

    .card-secondary {
        width: 130px;
        height: 85px;
        right: 0;
    }

    .card-tertiary {
        width: 120px;
        height: 80px;
        left: 0;
    }

    .how-it-works-title {
        font-size: 1.75rem;
        margin-bottom: 26px;
    }

    .how-it-works-grid {
        gap: 16px;
    }

    .how-card {
        padding: 18px;
        border-radius: 16px;
        gap: 18px;
    }

    .how-visual {
        height: 144px;
        margin-bottom: 14px;
        min-height: 180px;
        padding: 20px;
    }

    .pipeline-demo {
        flex-wrap: wrap;
        justify-content: center;
        max-width: 220px;
        gap: 8px;
    }

    .login-modal {
        padding: 32px 24px;
        margin: 16px;
    }

    .modal-header h2 {
        font-size: 1.5rem;
    }
}

/* Pricing Section */
.pricing-section {
    background: #FAFAFA;
    padding: 60px 32px 88px;
    display: flex;
    justify-content: center;
    position: relative;
}



.pricing-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(ellipse at 20% 30%, rgba(226, 220, 200, 0.5) 0%, transparent 45%),
        radial-gradient(ellipse at 80% 70%, rgba(226, 220, 200, 0.3) 0%, transparent 35%);
    pointer-events: none;
    mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 100%);
    -webkit-mask-image: linear-gradient(to bottom, transparent 0%, black 15%, black 100%);
}



.pricing-content {
    width: 100%;
    max-width: 920px;
}

.pricing-header {
    text-align: center;
    margin-bottom: 48px;
}

.pricing-label {
    display: inline-block;
    font-size: 0.875rem;
    font-weight: 600;
    color: #100F0F;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 16px;
}

.pricing-title {
    font-size: 2rem;
    font-weight: 600;
    color: #100F0F;
    letter-spacing: -0.02em;
    margin: 0 0 8px 0;
}

.pricing-subtitle {
    font-size: 1.125rem;
    color: #666;
    margin: 0;
}

.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 32px;
    margin-bottom: 24px;
}

.pricing-card {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 4px 20px rgba(16, 15, 15, 0.06);
    border: 1px solid #E5E5E5;
    display: flex;
    flex-direction: column;
    position: relative;
    z-index: 1;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.pricing-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 40px rgba(16, 15, 15, 0.1);
}

.pricing-card.popular {
    border: 2px solid #100F0F;
    box-shadow: 0 8px 30px rgba(16, 15, 15, 0.12);
}

.pricing-card.popular:hover {
    box-shadow: 0 16px 50px rgba(16, 15, 15, 0.15);
}

.popular-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background-color: #100F0F;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 6px 16px;
    border-radius: 20px;
}

.plan-price .price-original {
    font-size: 1.125rem;
    font-weight: 500;
    color: #999;
    text-decoration: line-through;
    margin-right: 4px;
}

.plan-price .period.highlight {
    font-size: 0.8rem;
    font-weight: 700;
    color: #1E8449;
    letter-spacing: 0.04em;
    margin-left: 6px;
}

.plan-price-sub {
    font-size: 0.875rem;
    color: #999;
    margin-top: 6px;
}

.pricing-card-header {
    margin-bottom: 40px;
}

.plan-name {
    font-size: 2.25rem;
    font-weight: 700;
    color: #100F0F;
    margin: 0 0 12px 0;
}

.plan-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 2px;
}

.price {
    font-size: 1.75rem;
    font-weight: 600;
    color: #100F0F;
}

.period {
    font-size: 0.875rem;
    color: #666;
}

.savings {
    display: inline-block;
    margin-top: 8px;
    font-size: 0.875rem;
    font-weight: 600;
    color: #27AE60;
    background-color: rgba(39, 174, 96, 0.1);
    padding: 4px 12px;
    border-radius: 20px;
}

.pricing-features {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: 40px;
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.1rem;
    color: #333;
}

.feature-item svg {
    width: 22px;
    height: 22px;
    color: #100F0F;
    flex-shrink: 0;
}

.feature-item.highlight {
    color: #100F0F;
}

.feature-item.highlight svg {
    color: #16a34a;
}

.pricing-cta {
    width: 100%;
    padding: 16px 24px;
    background-color: #100F0F;
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.pricing-cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(16, 15, 15, 0.25);
    background-color: #2a2a2a;
}

.pricing-cta.secondary {
    background-color: transparent;
    color: #100F0F;
    border: 2px solid #100F0F;
}

.pricing-cta.secondary:hover {
    background-color: #100F0F;
    color: white;
}

.guarantee-simple {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 40px;
    font-size: 1.1rem;
    color: #666;
}

.guarantee-simple svg {
    width: 20px;
    height: 20px;
    color: #27AE60;
}

.landing-footer {
    background: #100F0F;
    padding: 56px 32px 28px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.landing-footer-content {
    max-width: 1120px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 48px;
    color: rgba(255, 255, 255, 0.7);
    font-size: 1rem;
}

.landing-footer-brand {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    min-width: 0;
    flex: 1 1 0;
}

.landing-footer-logo {
    width: 88px;
    height: 88px;
    display: block;
    object-fit: contain;
    border-radius: 18px;
    background: #fff;
    padding: 12px;
    flex: 0 0 auto;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.18);
}

.landing-footer-brand-copy {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.landing-footer-company {
    color: #fff;
    font-size: 1.4rem;
    font-weight: 600;
    line-height: 1.2;
}

.landing-footer-tagline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.95rem;
    line-height: 1.4;
}

.landing-footer-columns {
    display: grid;
    grid-template-columns: repeat(2, minmax(160px, 220px));
    gap: 32px;
    flex: 0 0 auto;
}

.landing-footer-column {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.landing-footer-label {
    color: rgba(255, 255, 255, 0.65);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 0.12em;
    margin-bottom: 4px;
}

.landing-footer-content a {
    color: #fff;
    text-decoration: none;
    font-weight: 500;
    line-height: 1.5;
}

.landing-footer-content a:hover {
    text-decoration: underline;
}

.landing-footer-link {
    padding: 0;
    border: 0;
    background: transparent;
    color: #fff;
    text-align: left;
    font-weight: 500;
    line-height: 1.5;
}

.landing-footer-link:hover {
    text-decoration: underline;
}

.landing-footer-bottom {
    max-width: 1120px;
    margin: 32px auto 0;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: center;
    gap: 16px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.88rem;
}

@media (max-width: 768px) {
    .pricing-section {
        padding: 60px 24px 64px;
    }

    .pricing-title {
        font-size: 1.75rem;
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .pricing-card {
        padding: 28px;
    }

    .pricing-features {
        margin-bottom: 28px;
    }

    .feature-item {
        font-size: 1rem;
        align-items: flex-start;
    }

    .price {
        font-size: 2.5rem;
    }

    .guarantee-banner {
        padding: 16px 20px;
        margin-top: 28px;
    }

    .guarantee-content {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }

    .guarantee-banner svg {
        width: 24px;
        height: 24px;
    }

    .guarantee-text strong {
        font-size: 1rem;
    }

    .guarantee-text span {
        font-size: 0.9rem;
    }

    .landing-footer {
        padding: 36px 24px;
    }

    .landing-footer-content {
        flex-direction: column;
        gap: 28px;
    }

    .landing-footer-brand {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .landing-footer-columns {
        grid-template-columns: 1fr;
        width: 100%;
        gap: 24px;
    }

    .landing-footer-column {
        align-items: center;
        text-align: center;
    }

    .landing-footer-link {
        text-align: center;
    }

    .landing-footer-bottom {
        margin-top: 24px;
        padding-top: 16px;
        flex-direction: column;
        align-items: center;
        text-align: center;
    }
}

/* Dashboard Responsive */
@media (max-width: 1100px) {
    .dashboard-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        padding-bottom: 60px;
    }

    .dashboard-grid > .stat-card:nth-child(1) { grid-column: 1; grid-row: auto; }
    .dashboard-grid > .stat-card:nth-child(2) { grid-column: 2; grid-row: auto; }
    .dashboard-grid > .stat-card:nth-child(3) { grid-column: 1 / 3; grid-row: auto; }

    .dashboard-grid > .pipeline-card {
        grid-column: 1 / 3;
        grid-row: auto;
    }

    .dashboard-grid > .dashboard-recently-sold {
        grid-column: 1 / 3;
        grid-row: auto;
        height: auto;
    }

    .dashboard-grid > .dashboard-bottom {
        grid-column: 1 / 3;
        grid-row: auto;
    }
}

@media (max-width: 768px) {
    .dashboard-grid {
        grid-template-columns: 1fr;
        grid-template-rows: auto;
        gap: 16px;
        padding-bottom: 40px;
    }

    .dashboard-grid > .stat-card:nth-child(1),
    .dashboard-grid > .stat-card:nth-child(2),
    .dashboard-grid > .stat-card:nth-child(3),
    .dashboard-grid > .pipeline-card,
    .dashboard-grid > .dashboard-recently-sold,
    .dashboard-grid > .dashboard-bottom {
        grid-column: 1;
        grid-row: auto;
        height: auto;
    }

    .dashboard-grid > .dashboard-bottom {
        grid-template-columns: 1fr;
    }

    .stat-card {
        padding: 20px;
    }

    .stat-value {
        font-size: 1.4rem;
    }

    .pipeline {
        flex-wrap: wrap;
        gap: 12px;
        justify-content: center;
    }

    .pipeline-arrow {
        display: none;
    }

    .pipeline-step {
        flex: 0 0 calc(33.333% - 12px);
    }

    .bar-chart {
        height: 160px;
        gap: 8px;
    }

    .bar-wrapper {
        height: 120px;
    }

    .sources-body {
        flex-direction: column;
        align-items: flex-start;
    }

    .pie-chart {
        width: 100px;
        height: 100px;
    }
}
