/* 
 * Pattern Screener Dashboard - Modern Terminal UI
 * Redesigned with sidebar navigation and enhanced visuals
 */

:root {
    /* Darker palette (inspired by terminal) */
    --bg-primary: #0a0b0f;
    --bg-secondary: #13141a;
    --bg-card: #1a1b24;
    --bg-hover: #1f2029;

    /* Text colors */
    --text-primary: #ffffff;
    --text-secondary: #a0a0b0;
    --text-muted: #606070;

    /* Border */
    --border-color: #2a2a3d;

    /* Accent colors */
    --accent-blue: #2563eb;
    --accent-green: #10b981;
    --accent-red: #ef4444;
    --accent-yellow: #f59e0b;
    --accent-purple: #8b5cf6;

    /* Shadows & glows */
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.3);
    --glow-blue: 0 0 20px rgba(37, 99, 235, 0.2);
    --glow-green: 0 0 20px rgba(16, 185, 129, 0.2);
    --glow-red: 0 0 20px rgba(239, 68, 68, 0.2);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    background-color: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    display: flex;
    height: 100vh;
    overflow: hidden;
}

/* ===== SIDEBAR ===== */
.sidebar {
    width: 200px;
    background: var(--bg-secondary);
    border-right: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    flex-shrink: 0;
}

.sidebar-brand {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    gap: 12px;
}

.brand-icon {
    font-size: 28px;
}

.brand-text {
    flex: 1;
}

.brand-name {
    font-size: 14px;
    font-weight: 700;
    color: var(--text-primary);
}

.brand-version {
    font-size: 11px;
    color: var(--text-muted);
}

.sidebar-nav {
    flex: 1;
    padding: 16px 0;
}

.nav-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 20px;
    color: var(--text-secondary);
    text-decoration: none;
    transition: all 0.2s;
}

.nav-item:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.nav-item.active {
    background: var(--bg-hover);
    color: var(--accent-blue);
    border-left: 3px solid var(--accent-blue);
}

.nav-icon {
    font-size: 18px;
}

.nav-label {
    font-size: 14px;
    font-weight: 500;
}

.sidebar-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.market-status {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 12px;
    color: var(--text-secondary);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--accent-green);
    animation: pulse 2s infinite;
}

@keyframes pulse {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0.5;
    }
}

/* ===== MAIN CONTENT ===== */
.main-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ===== TOP BAR ===== */
.top-bar {
    height: 64px;
    background: var(--bg-secondary);
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    padding: 0 24px;
    gap: 24px;
    flex-shrink: 0;
}

.search-container {
    position: relative;
    flex: 1;
    max-width: 500px;
}

.search-input {
    width: 100%;
    height: 40px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 0 40px 0 16px;
    color: var(--text-primary);
    font-size: 14px;
    transition: all 0.2s;
}

.search-input:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
}

.search-input::placeholder {
    color: var(--text-muted);
}

.search-kbd {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 2px 6px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    font-size: 11px;
    color: var(--text-muted);
    font-family: monospace;
}

.top-bar-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* VIX Widget */
.vix-widget {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--bg-card);
    border-radius: 8px;
}

.vix-label {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 600;
}

.vix-value {
    font-size: 16px;
    font-weight: 700;
    color: var(--text-primary);
}

.vix-regime {
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
}

.vix-regime.low {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.vix-regime.normal {
    background: rgba(37, 99, 235, 0.15);
    color: var(--accent-blue);
}

.vix-regime.high {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.top-bar-time {
    font-size: 13px;
    color: var(--text-secondary);
}

.btn-refresh {
    padding: 8px 16px;
    border: none;
    border-radius: 8px;
    background: var(--bg-card);
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-refresh:hover {
    background: var(--bg-hover);
    transform: scale(1.05);
}

/* ===== DASHBOARD CONTENT ===== */
.dashboard-content {
    flex: 1;
    overflow-y: auto;
    padding: 24px;
}

/* ===== GEX DISPLAY SECTION ===== */
.gex-display {
    background: linear-gradient(135deg, var(--bg-card) 0%, #1f1f2e 100%);
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 32px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    position: relative;
    overflow: hidden;
}

.gex-display::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-blue), var(--accent-purple));
}

.gex-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.gex-title {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
    margin: 0;
}

.gex-timestamp {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 500;
}

.gex-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.gex-item {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
}

.gex-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.4);
}

.gex-item.call-wall {
    border-left: 3px solid var(--accent-green);
}

.gex-item.put-wall {
    border-left: 3px solid var(--accent-red);
}

.gex-item.net-gex {
    border-left: 3px solid var(--accent-purple);
}

.gex-label {
    font-size: 11px;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    margin-bottom: 8px;
}

.gex-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
    font-family: 'Inter', monospace;
}

.gex-sublabel {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 6px;
    font-weight: 500;
}

/* Net GEX color coding */
.gex-item.net-gex .gex-value.positive {
    color: var(--accent-green);
}

.gex-item.net-gex .gex-value.negative {
    color: var(--accent-red);
}

/* Responsive GEX Grid */
@media (max-width: 1200px) {
    .gex-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .gex-grid {
        grid-template-columns: 1fr;
    }
}

/* Stats Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.stat-card {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: var(--accent-blue);
    opacity: 0;
    transition: opacity 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: rgba(37, 99, 235, 0.3);
}

.stat-card:hover::before {
    opacity: 1;
}

.stat-card.bullish-card::before {
    background: var(--accent-green);
}

.stat-card.bearish-card::before {
    background: var(--accent-red);
}

.stat-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 12px;
}

.stat-icon {
    font-size: 24px;
}

.stat-change {
    font-size: 12px;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 600;
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.stat-change:empty {
    display: none;
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
    margin-bottom: 8px;
}

.stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: 500;
}

.stat-subtitle {
    font-size: 11px;
    color: var(--text-muted);
    margin-top: 4px;
}

/* Dynamic stat card colors */
.stat-card.bullish,
#pnl-card.bullish,
#realized-pnl-card.bullish {
    border-color: rgba(16, 185, 129, 0.3);
}

.stat-card.bullish .stat-value,
#pnl-card.bullish .stat-value,
#realized-pnl-card.bullish .stat-value {
    color: var(--accent-green);
}

.stat-card.bearish,
#pnl-card.bearish,
#realized-pnl-card.bearish {
    border-color: rgba(239, 68, 68, 0.3);
}

.stat-card.bearish .stat-value,
#pnl-card.bearish .stat-value,
#realized-pnl-card.bearish .stat-value {
    color: var(--accent-red);
}

/* Filters */
.filters {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
}

.filters select {
    padding: 10px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.filters select:hover {
    border-color: var(--accent-blue);
}

.filters select:focus {
    outline: none;
    border-color: var(--accent-blue);
    box-shadow: var(--glow-blue);
}

/* Section Headers */
.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h2 {
    font-size: 1.25rem;
    font-weight: 600;
}

.section-count {
    padding: 4px 12px;
    background: var(--bg-card);
    border-radius: 16px;
    font-size: 14px;
    font-weight: 600;
    color: var(--text-secondary);
}

/* Tables */
.table-container {
    background: var(--bg-card);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    margin-bottom: 32px;
}

.patterns-table {
    width: 100%;
    border-collapse: collapse;
}

.patterns-table thead {
    background: var(--bg-secondary);
}

.patterns-table th {
    padding: 14px 16px;
    text-align: left;
    font-size: 12px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.patterns-table tbody tr {
    border-bottom: 1px solid var(--border-color);
    transition: background 0.2s;
}

.patterns-table tbody tr:hover {
    background: var(--bg-hover);
}

.patterns-table tbody tr:last-child {
    border-bottom: none;
}

.patterns-table td {
    padding: 16px;
    font-size: 14px;
}

.patterns-table .loading,
.patterns-table .empty-state {
    text-align: center;
    color: var(--text-muted);
    padding: 40px;
    font-style: italic;
}

/* Symbol Badge */
.symbol-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-weight: 600;
    font-size: 12px;
    margin-right: 8px;
    color: white;
}

.symbol-name {
    font-weight: 600;
}

/* Direction Badge */
.direction-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 600;
}

.direction-badge.bullish {
    background: rgba(16, 185, 129, 0.15);
    color: var(--accent-green);
}

.direction-badge.bearish {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

/* Status Pills */
.status-pill {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
}

.status-pill.forming {
    background: rgba(37, 99, 235, 0.15);
    color: var(--accent-blue);
}

.status-pill.triggered {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-yellow);
}

/* P&L Cell with progress bar */
.pnl-cell {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pnl-bar {
    height: 4px;
    border-radius: 2px;
    transition: width 0.3s;
}

.pnl-bar.positive {
    background: var(--accent-green);
}

.pnl-bar.negative {
    background: var(--accent-red);
}

/* Price cells */
.price {
    font-family: 'Inter', monospace;
    font-weight: 500;
}

.price.bullish {
    color: var(--accent-green);
}

.price.bearish {
    color: var(--accent-red);
}

.price.target {
    color: var(--accent-green);
}

.price.stop {
    color: var(--accent-red);
}

/* Chart Button */
.btn-chart {
    padding: 6px 12px;
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 6px;
    color: var(--text-primary);
    cursor: pointer;
    font-size: 14px;
    transition: all 0.2s;
}

.btn-chart:hover {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
    transform: scale(1.1);
}

/* Footer */
.footer {
    padding: 20px 0;
    text-align: center;
    color: var(--text-muted);
    font-size: 12px;
    border-top: 1px solid var(--border-color);
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background: var(--bg-card);
    border-radius: 12px;
    width: 90%;
    max-width: 1200px;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.modal-close {
    background: none;
    border: none;
    color: var(--text-primary);
    font-size: 32px;
    cursor: pointer;
    line-height: 1;
}

.modal-close:hover {
    color: var(--accent-red);
}

#chart-container {
    padding: 20px;
    min-height: 500px;
}

.modal-info {
    padding: 20px;
    border-top: 1px solid var(--border-color);
    font-size: 14px;
    color: var(--text-secondary);
}

/* ===== TABS ===== */
.tab-nav {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
    border-bottom: 2px solid var(--border-color);
}

.tab-btn {
    padding: 12px 24px;
    background: none;
    border: none;
    border-bottom: 3px solid transparent;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    position: relative;
    bottom: -2px;
}

.tab-btn:hover {
    color: var(--text-primary);
    background: var(--bg-hover);
}

.tab-btn.active {
    color: var(--accent-blue);
    border-bottom-color: var(--accent-blue);
}

.tab-content {
    display: none;
}

.tab-content.active {
    display: block;
}

/* ===== SORTABLE TABLES ===== */
.patterns-table th[data-sort] {
    cursor: pointer;
    user-select: none;
    position: relative;
}

.patterns-table th[data-sort]:hover {
    background: var(--bg-hover);
    color: var(--text-primary);
}

.patterns-table th[data-sort].sorted-asc::after {
    content: ' ↑';
    color: var(--accent-blue);
}

.patterns-table th[data-sort].sorted-desc::after {
    content: ' ↓';
    color: var(--accent-blue);
}

/* ===== PAGINATION ===== */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    padding: 20px 0;
}

.pagination-btn {
    padding: 8px 16px;
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    color: var(--text-primary);
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination-btn:hover:not(:disabled) {
    background: var(--accent-blue);
    border-color: var(--accent-blue);
}

.pagination-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.pagination-info {
    color: var(--text-secondary);
    font-size: 14px;
}

/* Responsive Design */
@media (max-width: 768px) {
    body {
        flex-direction: column;
    }

    .sidebar {
        width: 100%;
        height: auto;
        flex-direction: row;
        padding: 8px;
    }

    .sidebar-brand {
        padding: 8px 12px;
        border-bottom: none;
    }

    .brand-icon {
        font-size: 20px;
    }

    .brand-name {
        font-size: 12px;
    }

    .brand-version {
        display: none;
    }

    .sidebar-nav {
        display: flex;
        flex-direction: row;
        padding: 0;
        gap: 4px;
    }

    .nav-item {
        padding: 8px 12px;
        font-size: 12px;
    }

    .nav-label {
        display: none;
    }

    .nav-icon {
        font-size: 20px;
    }

    .sidebar-footer {
        display: none;
    }

    .main-content {
        width: 100%;
    }

    .top-bar {
        padding: 8px 12px;
        height: auto;
        flex-wrap: wrap;
        gap: 8px;
    }

    .search-container {
        width: 100%;
        max-width: none;
        order: 2;
    }

    .top-bar-actions {
        width: 100%;
        justify-content: space-between;
        order: 1;
    }

    .vix-widget {
        padding: 6px 10px;
    }

    .dashboard-content {
        padding: 12px;
    }

    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
    }

    .stat-card {
        padding: 12px;
    }

    .stat-value {
        font-size: 1.5rem;
    }

    .stat-label {
        font-size: 11px;
    }

    .stat-subtitle {
        display: none;
    }

    .filters {
        flex-wrap: wrap;
        gap: 8px;
    }

    .filters select {
        flex: 1;
        min-width: 100px;
        padding: 8px 12px;
        font-size: 12px;
    }

    .tab-nav {
        flex-wrap: wrap;
        gap: 4px;
    }

    .tab-btn {
        flex: 1;
        min-width: 80px;
        padding: 8px 12px;
        font-size: 12px;
    }

    /* Make tables horizontally scrollable */
    .table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }

    .patterns-table {
        min-width: 800px;
    }

    .patterns-table th,
    .patterns-table td {
        padding: 10px 8px;
        font-size: 12px;
        white-space: nowrap;
    }

    .symbol-badge {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }

    .btn-chart {
        padding: 4px 8px;
        font-size: 12px;
    }

    /* Squeeze page mobile */
    .squeeze-stats-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 8px;
    }

    .squeeze-stat {
        padding: 12px 8px;
    }

    .squeeze-stat-value {
        font-size: 1.5rem;
    }

    .squeeze-stat-label {
        font-size: 10px;
    }

    .page-title {
        font-size: 1.25rem;
    }

    .page-subtitle {
        font-size: 12px;
    }

    /* Modal mobile */
    .modal-content {
        width: 95%;
        max-height: 85vh;
    }

    #chart-container {
        padding: 10px;
        min-height: 300px;
    }

    .footer {
        font-size: 10px;
        padding: 12px 0;
    }
}

/* ===== NAV BADGE ===== */
.nav-badge {
    margin-left: auto;
    padding: 2px 8px;
    background: var(--accent-red);
    border-radius: 10px;
    font-size: 11px;
    font-weight: 700;
    color: white;
    min-width: 20px;
    text-align: center;
}

.nav-badge:empty,
.nav-badge[data-count="0"] {
    display: none;
}

/* ===== SQUEEZE PAGE ===== */
.page-content {
    animation: fadeIn 0.3s ease-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.page-title {
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: 8px;
}

.page-subtitle {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}

/* Squeeze Stats Grid */
.squeeze-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.squeeze-stat {
    background: var(--bg-card);
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    border: 2px solid var(--border-color);
    transition: all 0.3s;
}

.squeeze-stat:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.squeeze-stat.active-squeeze {
    border-color: var(--accent-red);
    background: rgba(239, 68, 68, 0.05);
}

.squeeze-stat.active-squeeze .squeeze-stat-value {
    color: var(--accent-red);
}

.squeeze-stat.early-pressure {
    border-color: var(--accent-yellow);
    background: rgba(245, 158, 11, 0.05);
}

.squeeze-stat.early-pressure .squeeze-stat-value {
    color: var(--accent-yellow);
}

.squeeze-stat.monitoring {
    border-color: var(--accent-blue);
    background: rgba(37, 99, 235, 0.05);
}

.squeeze-stat.monitoring .squeeze-stat-value {
    color: var(--accent-blue);
}

.squeeze-stat-value {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1;
}

.squeeze-stat-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 8px;
}

/* Squeeze Card on Main Dashboard */
.squeeze-card {
    border-color: rgba(239, 68, 68, 0.3);
}

.squeeze-card::before {
    background: linear-gradient(90deg, var(--accent-red), var(--accent-yellow));
}

.squeeze-card:hover {
    border-color: var(--accent-red);
}

/* Bucket badges */
.bucket-badge {
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 11px;
    font-weight: 600;
}

.bucket-badge.active-squeeze {
    background: rgba(239, 68, 68, 0.15);
    color: var(--accent-red);
}

.bucket-badge.early-pressure {
    background: rgba(245, 158, 11, 0.15);
    color: var(--accent-yellow);
}

.bucket-badge.monitoring {
    background: rgba(37, 99, 235, 0.15);
    color: var(--accent-blue);
}

.bucket-badge.late {
    background: rgba(128, 128, 128, 0.15);
    color: var(--text-muted);
}

/* Screener page wrapper */
#screener-page {
    display: block;
}