
body {
    font-family: Roboto, sans-serif;
    margin: 0;
    padding: 0; /* Reset padding */
}

.center {
    margin-left: auto;
    margin-right: auto;
}

/*.Below, .Slightly-below {*/
/*    background-color: seagreen;*/
/*    padding: 10px 20px;*/
/*    font-weight: bold;*/
/*    border-radius: 0px;*/
/*}*/

/*.Above, .Slightly-above {*/
/*    background-color: lightcoral;*/
/*    padding: 10px 20px;*/
/*    font-weight: bold;*/
/*    border-radius: 0px;*/
/*}*/

/*.FairValue {*/
/*    background-color: lightgoldenrodyellow;*/
/*    padding: 10px 20px;*/
/*    font-weight: bold;*/
/*    border-radius: 0px;*/
/*}*/

/*!* Apply background colors to Classification cells *!*/
/*table.center .Classification.Below, table.center .Classification.Slightly-below {*/
/*    background-color: seagreen;*/
/*}*/

/*table.center .Classification.Above, table.center .Classification.Slightly-above {*/
/*    background-color: lightcoral;*/
/*}*/

/*table.center .Classification.FairValue {*/
/*    background-color: lightgoldenrodyellow;*/
/*}*/

.value {
    font-weight: bold;
}

/* Red for Above & Slightly Above */
.value.Above, .value.Slightly-Above {
    color: red;
}

/* Yellow for Fair Value */
.value.FairValue {
    color: black; /* Orange/Yellow */
}

/* Green for Slightly Under & Under */
.value.Slightly-Below, .value.Below {
    color: seagreen;
}


.buy-button {
    background-color: black;
    color: white;
    border: 1px solid black;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    margin: 1px 2px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Add this line for shadow */

}

.buy-button:hover {
    background-color: #004E98;
    color: white;
    transition: background-color 0.3s ease; /* Add a smooth transition effect */
}

.data-table, .comics-section {
    display: block;
    vertical-align: top;
    margin: 0 0 0 0;
    width: 100%;
    border-radius: 5px;
}

.data-table th {
    border-bottom: 1px solid grey; /* Add a black border to table cells */
    padding: 4px; /* Add padding for cell content */
    text-align: center;
    width: 25%; /* Adjust the width as needed based on the number of columns */
    border-radius: 0px;
}

.data-table td {
    border: none; /* Add a black border to table cells */
    padding: 2px; /* Add padding for cell content */
    text-align: center;
    width: 25%; /* Adjust the width as needed based on the number of columns */
    /*border-radius: 5px;*/
}


.header {
    background-color: white; /* Add a light grey background color to header cells */
    font-weight: bold;
    text-align: center;
    padding: 8px;
    border: 0px solid darkgrey;
}

h1 {
    font-size: 30px;
    /*margin-bottom: 0; !* Adjust the margin to control spacing below h1 *!*/
    margin: 0;
}

.intro {
    display: flex;
    justify-content: space-between; /* Push elements to the sides */
    align-items: center; /* Vertically center elements */
    padding-right: 30px;
    position: relative; /* Change position to relative */
    z-index: 999; /* Ensure .intro stays above the navbar */
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin: auto;
    position: fixed; /* Make the header fixed */
    width: 100%; /* Make the header span the entire width of the viewport */
    top: 0; /* Position the header at the top of the viewport */
    z-index: 1000; /* Ensure the header stays above other content */
    padding-bottom: 10px;
    padding-top: 60px;
    padding-left: 15px;
    background-color: white;
    border-bottom: 1px solid lightgray;
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background-color: black; /* Background color of the button */
    color: white; /* Text color */
    text-decoration: none;
    border-radius: 5px; /* Rounded corners */
    font-weight: bold;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Add this line for shadow */
}

.button:hover {
    background-color: #004E98; /* Change the background color on hover */
}


.comics-section table {
    text-align: center;
    max-width: 100%; /* Adjust the maximum width as needed */
    overflow-y: scroll; /* Add a vertical scroll bar, always visible */
    max-height: 400px; /* Set a maximum height to enable scrolling */
    margin-left: auto; /* Align to the right side */
    margin-right: auto; /* Add right margin */
    display: inline-block; /* Display as inline block to allow margin adjustments */
}

.comics-section table::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 10px;
}

.comics-section table::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(0, 0, 0, .5);
    box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}

.comics-section-sales-history table {
    text-align: center;
    max-width: 100%; /* Adjust the maximum width as needed */
    overflow-y: scroll; /* Add a vertical scroll bar, always visible */
    max-height: 400px; /* Set a maximum height to enable scrolling */
    margin-left: auto; /* Align to the right side */
    margin-right: auto; /* Add right margin */
    display: inline-block; /* Display as inline block to allow margin adjustments */
}

.comics-section-sales-history table::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 10px;
}

.comics-section-sales-history table::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(0, 0, 0, .5);
    box-shadow: 0 0 1px rgba(255, 255, 255, .5);
    height: 25%;
}

.scroll-indicator {
    position: absolute;
    bottom: 10px;
    width: 100%;
    text-align: center;
    font-size: 12px;
    color: #666;
    background: linear-gradient(to top, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

table.center {
    margin: auto;
    /*border-collapse: collapse;*/
    /*width: 100%;*/
}


th, td {
    padding: 8px;
    border-bottom: 1px solid grey;
    text-align: center;
}

th {
    background-color: white;
    position: sticky;
    top: 0;
    z-index: 1;
}

h2 {
    color: #333;
    text-align: center;
    margin-top: 0;
}

label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    text-align: center;
    font-size: 18px; /* Increase font size */
}

select,
input[type="submit"] {
    width: 75%;
    padding: 3px;
    margin-bottom: 6px;
    border: 1px solid #000;
    border-radius: 4px;
    box-sizing: border-box;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px; /* Increase font size */
}

input[type="submit"] {
    width: 75%; /* Increase the width */
    padding: 9px; /* Increase padding for larger button size */
    font-size: 18px; /* Increase font size */
    font-weight: bold; /* Make the text bold */
    background-color: black;
    color: #fff;
    border-radius: 4px;
    cursor: pointer;
    gap: 1px;
    display: block;
    margin: auto; /* Set left and right margins to 'auto' */
    transition: background-color 0.3s ease; /* Add a smooth transition effect */
}

input[type="submit"]:hover {
    background-color: #004E98;
}


.search-section {
    text-align: center;
    margin: 0 0 0 0; /* Center the section horizontally */
    max-width: 400px;
}

.key-metrics {
    text-align: center;
    /*margin: 0 0 0 150px;*/
    /*display: block;*/
    /*vertical-align: top;*/
    /*width: 75%;*/
}

.container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    margin-top: 125px;
    /*margin-left: 10px;*/
    text-align: center; /* Center the content horizontally */
}

#selectedComicImage {
    flex-basis: 100%; /* Make the image take the full width of the container */
    margin-bottom: 20px; /* Add some spacing between the image and the text */
    /*border: 1px solid black;*/
}

#selectedComicImageMobile {
    flex-basis: 100%; /* Make the image take the full width of the container */
    margin-bottom: 5px; /* Add some spacing between the image and the text */
    /*border: 1px solid black;*/
}

#selectedIssue {
    width: 100%; /* Make the text take the full width of the container */
    margin-bottom: 10px; /* Add some spacing between the text and the image */
}

.column {
    flex: 1;
    margin: 0 0 0 10px; /* Adjust the margin as needed for spacing */
}

#logoutButton {
    background-color: black;
    color: white;
    border: 1px solid black;
    padding: 10px 20px;
    text-align: center;
    text-decoration: none;
    display: inline-block;
    font-size: 14px;
    font-weight: bold;
    margin: 1px 2px;
    cursor: pointer;
    border-radius: 4px;
    box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.3); /* Add this line for shadow */
}

#logoutButton:hover {
    background-color: #004E98;
    color: white;
    transition: background-color 0.3s ease; /* Add a smooth transition effect */
}


.nav-link {
    margin-right: 10px; /* Adjust spacing between links */
    text-decoration: none;
    color: #333; /* Set link color */
    font-weight: bold; /* Make links bold */
}

.nav-link:hover {
    color: #555; /* Change link color on hover */
}

.thumbnail {
    width: 100px;
    height: auto;
}

.italics {
    font-style: italic;
}

.nav-link.disabled {
    color: #999; /* Gray out the text */
    pointer-events: none; /* Disable the link */
}

.coming-soon {
    font-style: italic; /* Make it italic */
    font-size: 12px;
    margin-left: 0px; /* Adjust the margin for spacing */
    color: #999;

}

/* Define the style for the announcement banner */
.announcement-banner {
    background-color: #004E98; /* Choose your desired background color */
    padding: 0; /* Add some padding for better spacing */
    color: white;
    text-align: center; /* Center-align text */
    width: 100%; /* Make the announcement banner span the entire width */
    position: fixed; /* Fix the position of the announcement banner */
    top: 0; /* Align the announcement banner to the top */
    z-index: 2000; /* Ensure the announcement banner stays above other content */
    font-size: 14px;
    font-weight: bold;
}

/* Footer styles */
footer {
    background-color: #004E98;
    color: white;
    padding: 40px; /* Adjust the padding to increase the height */
    margin-top: 60px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: white;
    margin-right: 15px; /* Adjust the margin between links */
    text-decoration: none;
}

.menu-toggle {
    display: none; /* Hide hamburger icon by default */
}

/* Overlay styles */
#loadingOverlay {
    display: none; /* Hidden by default */
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Spinner styles */
.spinner {
    width: 100px;
    height: 100px;
    border: 10px solid rgba(255, 255, 255, 0.1);
    border-top: 10px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.spinner span {
    position: absolute;
    color: #fff;
    font-size: 14px;
    text-align: center;
}

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

.hide-column {
    visibility: hidden;
}

.button-container {
    display: flex;
    justify-content: center; /* Align buttons to the start */
    gap: 8px; /* Add a small gap between buttons */
    text-align: center;
    margin-bottom: 20px;
}

.button-container button {
    padding: 10px 15px;
    margin: 1px;
    cursor: pointer;
    border: 1px solid #ccc;
    border-radius: 4px;
    font-weight: bold;
    width: 125px; /* Set a fixed width */
}

.button-container .active {
    background-color: #004E98;
    color: #fff;
}

.advanced-view {
    display: none;
}

.metrics-view {
    display: block;
}

.comparison-view {
    display: none;
}

/* Base Styles */
.notification-section {
    margin: 0;
    padding: 15px;
    border-radius: 5px;
    /*background-color: #f5f5f5;*/
    /*box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);*/
}

.notification-section label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
}

.notification-section input[type="checkbox"] {
    margin-right: 10px;
}

.save-notification-message {
    color: green;
    margin-top: 10px;
    font-weight: bold;
    text-align: center;
}

.accordion-content {
    display: none;
    margin-top: 15px;
    padding: 15px;
    border-radius: 8px;
    background-color: #ffffff;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.accordion-content .form-section {
    margin-bottom: 20px; /* Add space between sections */
}

.accordion-content label {
    margin-bottom: 5px;
    font-weight: 500;
}

.accordion-content select,
.accordion-content input[type="number"] {
    width: calc(100% - 20px); /* Adjust to ensure proper width */
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.radio-group {
    display: flex;
    justify-content: center;
    align-items: center;
    /*margin-bottom: 10px;*/
}

.radio-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-right: 20px; /* Adjust spacing between radio button groups */
}

.save-button {
    display: block;
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: none;
    background-color: black;
    color: #ffffff;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.save-button:hover {
    background-color: #004E98;
}

/* Ensure alignment and fit within the area */
.form-section {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.form-section label {
    margin-bottom: 5px;
    font-weight: 500;
}

.form-section select,
.form-section input[type="number"] {
    width: 100%;
    padding: 10px;
    border-radius: 5px;
    border: 1px solid #ddd;
    box-sizing: border-box;
}

.mobile-view-old {
    display: none; /* Default to hidden on desktop */
    padding: 10px;
    max-height: 400px; /* Set a maximum height to enable scrolling */
    overflow-y: scroll; /* Add a vertical scroll bar, always visible */
    margin-left: auto; /* Align to the right side */
    margin-right: auto; /* Add right margin */
    width: 100%; /* Ensure full width */
    box-sizing: border-box; /* Ensure padding is included in width */
}

.mobile-view {
    /*display: none; !* Default to hidden on desktop *!*/
    padding: 10px;
    max-height: 400px; /* Set a maximum height to enable scrolling */
    overflow-y: scroll; /* Add a vertical scroll bar, always visible */
    margin-left: auto; /* Align to the right side */
    margin-right: auto; /* Add right margin */
    width: 100%; /* Ensure full width */
    box-sizing: border-box; /* Ensure padding is included in width */
}

.mobile-view::-webkit-scrollbar {
    -webkit-appearance: none;
    width: 10px;
}

.mobile-view::-webkit-scrollbar-thumb {
    border-radius: 5px;
    background-color: rgba(0, 0, 0, .5);
    box-shadow: 0 0 1px rgba(255, 255, 255, .5);
    height: 25%;
}

.mobile-card {
    border: 1px solid #ddd;
    margin-bottom: 10px;
    padding: 10px;
    background-color: #f9f9f9;
    border-radius: 5px;
    width: 100%;
    box-sizing: border-box; /* Ensure padding is included in width */
}

.mobile-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 5px;
}

.mobile-row .label {
    font-weight: bold;
    color: black;
}

.mobile-row .value {
    font-weight: normal;
    color: black;
}

.comic-feed {
    padding-top: 100px; /* Space between the navbar and the feed */
    margin: 0 auto 20px; /* Center the feed and add space at the bottom */
    max-width: 800px; /* Set a max-width to control the width of the feed */
    width: 100%; /* Ensure the feed takes up the full width within the max-width */
}

.comic-entry {
    padding: 15px; /* Add padding around individual comic entries */
    margin-bottom: 20px; /* Space between each comic entry */
    background-color: #f9f9f9; /* Optional: Add background color for better visibility */
    border-radius: 5px; /* Optional: Round corners of the comic entries */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
    width: 100%;
}

.comic-summary {
    padding: 15px; /* Add padding around individual comic entries */
    margin-bottom: 20px; /* Space between each comic entry */
    background-color: #f9f9f9; /* Optional: Add background color for better visibility */
    border-radius: 5px; /* Optional: Round corners of the comic entries */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Optional: Add a subtle shadow */
}

.comparison-view {
    display: block;
    width: 100%; /* Ensure it spans the full width */
    margin-top: 0; /* Add some spacing from the buttons */
}

.metrics-table {
    width: 100%;
    border-collapse: separate; /* Add space between cells for a modern look */
    /*border-spacing: 0 8px; !* Add vertical spacing between rows *!*/
    font-size: 10px;
    background-color: #f8f9fa;
    border-radius: 5px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1); /* Add shadow for depth */
}

.metrics-table th, .metrics-table td {
    padding: 6px 3px;
    text-align: center;
    height: 20px; /* Fixed height for uniform row size */
    vertical-align: middle; /* Center the content vertically */
}

.metrics-table th {
    background-color: lightgrey;
    color: black;
    font-weight: bold;
    /*text-transform: uppercase;*/
    font-size: 10px;
    border-bottom: 1px solid black;
}

.metrics-table td {
    background-color: #ffffff;
    border-bottom: 1px solid #e9ecef;
    color: black;
}

/*.metrics-table tr:hover td {*/
/*    background-color: #f1f3f5; !* Light hover effect for rows *!*/
/*}*/

/*.metrics-table th, .metrics-table td:first-child {*/
/*    border-radius: 8px 0 0 8px; !* Round the left corners *!*/
/*}*/

/*.metrics-table th:last-child, .metrics-table td:last-child {*/
/*    border-radius: 0 8px 8px 0; !* Round the right corners *!*/
/*}*/


.metrics-table tr:nth-child(even) td {
    background-color: #f8f9fa; /* Light gray for even rows */
}

.additional-message {
    text-align: center;
    margin-top: 20px; /* Adjust the margin to your preference */
    font-style: italic;
    color: dimgrey;
    padding: 20px;
}

/* Hide card view by default */
.mobile-card-container {
    display: none;
}


.add-to-comparison {
    /*margin-top: 10px;*/
    background-color: #004E98;
    color: white;
    padding: 8px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    text-align: center;
    font-weight: bold;
    font-size: 10px;
}

.add-to-comparison:hover {
    background-color: #0056b3;
}

.cover-container-mobile {
    display: none;
}

.cover-container-mobile-accordion {
    display: none;
}

.metric-definitions-link {
    font-style: italic; /* Make the text italic */
    color: grey; /* Set the font color to grey */
    font-size: 12px; /* Slightly smaller font size */
    display: block; /* Ensures it starts on a new line */
    margin-top: -15px; /* Adjust vertical spacing closer to the heading */
    margin-bottom: 10px; /* Optional: Add some spacing below */
    text-decoration: underline; /* Remove underline by default */
}

.metric-definitions-link:hover {
    text-decoration: underline; /* Add underline on hover for accessibility */
    color: #555; /* Slightly darker grey on hover */
}


/* Highlighted step (blue wireframe) */
.walkthrough-highlight {
    position: relative;
    z-index: 1000;
    border: 4px solid #004E98; /* blue wireframe */
    box-shadow: 0 0 15px #002f5f;
}

/* Tooltip box */
.walkthrough-tooltip {
    width: 300px; /* ✅ Fixed width for uniformity */
    min-height: 120px; /* ✅ Minimum height to ensure consistent size */
    max-width: 90%; /* ✅ Prevents overflow on small screens */
    background: #fff;
    padding: 15px;
    border-radius: 6px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: center; /* ✅ Centers text vertically */
    align-items: center; /* ✅ Centers content horizontally */
}


/* Centered welcome message */
.walkthrough-tooltip.center {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

/* Position tooltip below */
.walkthrough-tooltip.bottom {
    top: 110%;
    left: 50%;
    transform: translateX(-50%);
}

/* Position tooltip above */
.walkthrough-tooltip.top {
    bottom: 110%;
    left: 50%;
    transform: translateX(-50%);
}

/* Position tooltip to the right */
.walkthrough-tooltip.right {
    top: 50%;
    left: 110%;
    transform: translateY(-50%);
}

/* Backdrop effect to dim background */
.walkthrough-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 900;
    display: none;
}

/* Walkthrough buttons */
.walkthrough-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 10px;
}

/* Center the "Next" button */
#walkthrough-next {
    background: #004E98;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

#walkthrough-next:hover {
    background: #002f5f;
}

/* Center the "Next" button */
#scrollToMetrics {
    background: #004E98;
    color: white;
    border: none;
    padding: 8px 15px;
    cursor: pointer;
    border-radius: 5px;
    font-size: 14px;
}

#scrollToMetrics:hover {
    background: #002f5f;
}

/* "Skip" button as hyperlink */
.walkthrough-skip {
    margin-top: 5px;
    font-size: 12px;
    text-decoration: underline;
    color: grey;
    cursor: pointer;
}

.walkthrough-skip:hover {
    color: dimgrey;
}


/*.listed-price-mobile-only {*/
/*    display: none;*/
/*}*/

/* Ensure price is centered properly */
.price-value {
    display: inline-block;
    text-align: center;
}

.accordion {
    width: 100%;
    max-width: 450px;
    color: black;
}

.accordion-item {
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    color: black;
}

.accordion-header {
    width: 100%;
    text-align: left;
    padding: 10px;
    font-size: 16px;
    font-weight: bold;
    background: #f9f9f9;
    border: none;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: black;
}

.accordion-header:hover {
    background: #e9e9e9;
}

/* Remove default button styles */
.accordion-sales-history-header {
    all: unset; /* Removes default button styles */
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 100%; /* Prevents it from overflowing */
    padding: 10px 15px; /* Adds left/right padding to keep content inside */
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    background: none;
    border-bottom: 1px solid #d3d3d3; /* Light grey border */
    box-sizing: border-box; /* Ensures padding doesn’t increase width */
    color: black;
}

/* Make sure the accordion content below doesn't inherit unintended border */
.accordion-content.sales-history-content {
    border-bottom: none;
    margin-bottom: 10px;
    color: black;
}


.accordion-header-sales-history-header {
    background: #e9e9e9;
    color: black;
}


.accordion-content {
    display: none;
    padding: 10px;
    border-top: none;
    color: black;
}

.accordion-content.active {
    visibility: visible;
    height: auto;
}

.accordion-header .fas {
    transition: transform 0.2s;
}

.accordion-header.active .fas {
    transform: rotate(180deg);
}

.fas.rotate {
    transform: rotate(180deg);
    transition: transform 0.3s ease;
}

.accordion-content.show {
    display: block;
}

.accordion-sales-history-header i {
    transition: transform 0.3s ease;
}

.accordion-sales-history-header.active i {
    transform: rotate(180deg);
}

.centered-text {
    text-align: center;
    border: none !important;
    margin: 0;
    padding: 0;
    /*margin-top: 2px;*/
}

.listing-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 16px;
    border-bottom: 1px solid #ddd;
    margin: 20px 0;
}

.listing-card > div {
    margin-bottom: 8px;
}

.thumbnail-container img {
    max-width: 400px;
    height: auto;
    border-radius: 5px;
}

.value {
    font-weight: bold;
    font-size: 16px;
}

.price-value {
    font-size: 16px;
    /*font-weight: bold;*/
}

.buy-button {
    padding: 8px 16px;
    font-size: 16px;
    margin-top: 5px;
}


.strong-investment {
    color: seagreen;
    font-weight: bold;
    margin-left: 10px;
}

.highly-liquid {
    color: #004E98;
    font-weight: bold;
    margin-left: 10px;
}

.unusual-volume {
    color: mediumpurple;
    font-weight: bold;
    margin-left: 10px;
}

/* Ensures "Grade" and "Fair Value" align properly */
.accordion-header-row {
    display: flex;
    justify-content: space-between;
    padding: 5px 5px;
    font-weight: bold;
    background-color: white; /* Light background for separation */
    border-radius: 5px;
}

/* Adjusts alignment for headers */
.header-label {
    flex: 1;
    text-align: left;
}

.fair-value-header {
    text-align: right;
    padding-right: 10px;
}

.fair-value {
    margin-left: auto; /* Pushes it to the right */
    text-align: right;
    padding-right: 15px; /* Adjust padding to fine-tune spacing */
}

.line-graph-wrapper {
    width: 100%;
    max-width: 100%;
    min-height: 200px;
    overflow-x: auto;
    box-sizing: border-box;
}


.comics-section table tr {
    display: block;
    width: 100%; /* Make each comic item full width on mobile */
    max-width: 100%;
    align-items: center;
    margin-bottom: 20px; /* Add spacing between items */
}

.comics-section table td {
    display: block;
    width: auto;
    text-align: center;
    border-bottom: 1px solid #ccc;
    border-radius: 0;
}


/* Each row of data inside the card */
.comics-section.table > div {
    padding: 8px 0;
    border-bottom: 1px solid #ccc;
}

/* Remove border from the last one */
.comics-section.table > div:last-child {
    border-bottom: none;
}

.listed-price-mobile-only {
    display: block; /* Forces it to appear as a separate line on mobile */
    text-align: center;
}

.price-value {
    display: block; /* Makes the price appear below the label */
}

.thumbnail {
    width: 30%; /* Reduce image size */
    height: auto;
    padding-bottom: 2px;
}

.view-toggle-button {
    background-color: #f0f0f0;
    border: 1px solid #ccc;
    padding: 8px 14px;
    margin: 0 5px;
    border-radius: 6px;
    cursor: pointer;
    font-weight: bold;
    font-size: 14px;
    color: #333;
}

.view-toggle-button:hover {
    background-color: #e0e0e0;
}

.view-toggle-button.active {
    background-color: #004E98;
    color: #fff;
    border-color: #004E98;
}

#simplifiedSelect,
#advancedSelect, #chooseAnalytics, #chooseFeed {
    padding: 10px 18px;
    font-weight: bold;
    font-size: 16px;
    color: white;
    background-color: #004E98;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    width: 100%;
    max-width: 240px;
    margin: 0 auto;
    display: block;
}

#simplifiedSelect:hover,
#advancedSelect:hover,
#chooseAnalytics:hover,
#chooseFeed:hover {
    background-color: #002f5f;
}

.watch-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 15px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
}

.meta {
    font-size: 13px;
    color: #666;
    margin-top: 5px;
}

.remove-btn {
    background: #e63946;
    color: white;
    border: none;
    border-radius: 4px;
    padding: 4px 8px;
    font-size: 12px;
    cursor: pointer;
    float: right;
}

.upgrade-banner {
    margin-top: 25px;
    padding: 15px;
    background: #e9f3ff;
    border-left: 5px solid #004E98;
    border-radius: 8px;
    font-size: 14px;
}

.upgrade-banner a {
    color: #004E98;
    font-weight: bold;
}

.watchlist-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 100vh; /* Ensures full height of screen */
}

.watchlist-content {
    flex: 1;
    max-width: 800px;
    margin: 60px auto 100px auto;
    padding: 75px 75px;
}

.empty-watchlist-message {
    text-align: center;
    margin-top: 20px;
    font-size: 14px;
    color: gray;
}

.watch-modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.6);
}

.watch-modal-content {
    background-color: #fff;
    margin: 10% auto;
    padding: 30px;
    border: none;
    border-radius: 12px;
    max-width: 400px;
    text-align: center;
    position: relative;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.25);
}

.watch-modal-close {
    position: absolute;
    top: 10px;
    right: 15px;
    color: #aaa;
    font-size: 24px;
    font-weight: bold;
    cursor: pointer;
}

.watch-modal-close:hover {
    color: #000;
}

.comparison-item {
    margin-bottom: 10px;
    padding-top: 20px;
}


/* Ask AI Popup Container */
#ai-response-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 9999;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 16px; /* add padding for mobile spacing */
    box-sizing: border-box;
}

/* Popup Content Box */
#ai-response-popup > div {
    background: #fff;
    border: 2px solid #004E98;
    padding: 24px;
    width: 100%;
    max-width: 500px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 0 12px rgba(0, 0, 0, 0.25);
    border-radius: 12px;
    font-size: 14px;
    color: #222;
    line-height: 1.5;
    position: relative;
    animation: fadeIn 0.2s ease-in-out;
    box-sizing: border-box;
}

/* Mobile font scaling */
@media screen and (max-width: 480px) {
    #ai-response-popup > div {
        padding: 16px;
        font-size: 13px;
    }
}

/* Close Button */
#ai-response-popup .close-btn {
    position: absolute;
    top: 8px;
    right: 8px;
    background: none;
    border: none;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    color: #444;
}

#ai-response-popup .close-btn:hover {
    color: #000;
}

/* Smooth Popup Animation */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: scale(0.95);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

/* Text Styling */
#ai-response-popup h1,
#ai-response-popup h2,
#ai-response-popup strong {
    font-weight: bold;
    color: black;
}

#ai-response-popup ul {
    padding-left: 20px;
    margin: 8px 0;
}

#ai-response-popup li {
    margin-bottom: 4px;
}


/* Container marks this section as locked */
.accordion-content.locked {
    position: relative;
}

/* Blurred preview (placeholder content only) */
.blurred-preview {
    filter: blur(6px);
    transform: scale(1.01);
    opacity: .9;
    pointer-events: none;
    user-select: none;
    position: relative;
    z-index: 1;
}

/* Skeleton shimmer bar */
.shimmer {
    background: linear-gradient(90deg, #eee 25%, #f5f5f5 37%, #eee 63%);
    background-size: 400% 100%;
    animation: shimmer-move 1.5s infinite;
}

@keyframes shimmer-move {
    0% {
        background-position: 100% 0;
    }
    100% {
        background-position: -100% 0;
    }
}

/* Fake chart box */
.chart-placeholder {
    height: 220px;
    border: 1px dashed #ddd;
    border-radius: 8px;
    background: #fafafa;
}

/* ---- Theme tokens ---- */
:root {
    --brand: #004E98; /* Underval blue */
    --brand-2: #0A64C5; /* Slightly lighter blue for gradients */
    --ink: #0f172a; /* Headline text */
    --muted: #5b6473; /* Body/sub text */
    --surface: #ffffffee; /* Card bg (glassy) */
    --stroke: rgba(15, 23, 42, 0.08);
    --shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
    --gold-1: #f1d08a;
    --gold-2: #caa65a;
}

/* ---- Card ---- */
.lock-card {
    position: relative;
    max-width: 520px;
    padding: 24px;
    border-radius: 16px;
    background: linear-gradient(180deg, var(--surface), #fff);
    border: 1px solid var(--stroke);
    box-shadow: var(--shadow);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    text-align: center;
}

/* Subtle premium border glow */
.lock-card::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 16px;
    padding: 1px; /* “stroke” thickness */
    background: linear-gradient(135deg, var(--gold-1), var(--gold-2), var(--brand));
    -webkit-mask: linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; /* punch out center */
    mask-composite: exclude;
    pointer-events: none;
    opacity: .35;
}

/* ---- Icon badge (lock) ---- */
.lock-emoji {
    position: relative;
    display: inline-grid;
    place-items: center;
    width: 56px;
    height: 56px;
    margin: 0 auto 10px;
    border-radius: 999px;
    font-size: 28px; /* emoji size inside the badge */
    line-height: 1;
    background: radial-gradient(120% 120% at 50% 10%, #fff, #f8fafc);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7),
    0 4px 14px rgba(0, 0, 0, 0.10);
}

/* Gold ring accent behind the badge */
.lock-emoji::before {
    content: "";
    position: absolute;
    inset: -4px;
    border-radius: inherit;
    background: conic-gradient(from 120deg, var(--gold-1), var(--gold-2), var(--gold-1));
    filter: blur(6px);
    opacity: .45;
    z-index: -1;
}

/* ---- Text ---- */
.lock-title {
    font-size: 22px;
    line-height: 28px;
    margin: 8px 0 6px;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--ink);
}

.lock-sub {
    color: var(--muted);
    font-size: 15px;
    line-height: 22px;
    margin-bottom: 14px;
}

/* ---- CTA ---- */
.lock-cta {
    display: inline-block;
    padding: 11px 16px;
    border-radius: 12px;
    background: linear-gradient(180deg, var(--brand-2), var(--brand));
    color: #fff;
    font-weight: 700;
    box-shadow: 0 8px 22px rgba(0, 78, 152, 0.32),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
    text-decoration: none;
}

.lock-cta:hover {
    transform: translateY(-1px);
    box-shadow: 0 12px 28px rgba(0, 78, 152, 0.36),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
    filter: saturate(1.05);
}

.lock-cta:active {
    transform: translateY(0);
    box-shadow: 0 6px 18px rgba(0, 78, 152, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* ---- Overlay (keeps context visible beneath) ---- */
.lock-overlay {
    background: rgba(255, 255, 255, 0.68);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    position: absolute;
    inset: 0; /* top/right/bottom/left: 0 */
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;

    /* kill default link styling */
    text-decoration: none;
    color: inherit;
}

/* Advanced Filters should show controls behind a transparent overlay */
.nested-accordion.advanced-filters .lock-overlay{
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}


/* ---- Motion + Accessibility ---- */
@media (prefers-reduced-motion: reduce) {
    .lock-cta,
    .lock-card::before {
        transition: none !important;
    }
}

/* Optional dark-mode polish */
@media (prefers-color-scheme: dark) {
    :root {
        --surface: rgba(13, 17, 23, 0.85);
        --stroke: rgba(255, 255, 255, 0.08);
        --ink: #e6ebf2;
        --muted: #a8b3c1;
        --shadow: 0 8px 28px rgba(0, 0, 0, 0.45);
    }

    .lock-overlay {
        background: rgba(10, 12, 16, 0.65);
    }
}

/* Make Advanced Filters (inside the accordion) match Title/Issue/Grade */
#comicSearchForm .accordion-content label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;            /* match global label */
    text-align: center;
    font-size: 18px;

}

#comicSearchForm .accordion-content select {
    width: 75%;
    padding: 3px;
    margin-bottom: 6px;
    border: 1px solid #000;
    border-radius: 4px;
    box-sizing: border-box;
    display: block;
    margin-left: auto;
    margin-right: auto;
    font-size: 14px;
}

/* Keep them inline on one row with &nbsp; separators (same feel as the top row) */
#comicSearchForm .accordion-content label{
    vertical-align: middle;
    display: inline-block;
    margin-bottom: 8px;
}

#comicSearchForm .accordion-content select {
    vertical-align: middle;
    display: inline-block;
    margin-bottom: 24px;
}

/* Advanced Filters heading size (only the text span, not the chevron) */
#comicSearchForm .advanced-filters .accordion-sales-history-header .center {
  font-size: 22px;     /* tweak to taste: 20–24px */
  font-weight: 800;    /* optional: make it pop a bit more */
  line-height: 12px;
}

/* Optional: slightly smaller on phones */
@media (max-width: 767px) {
  #comicSearchForm .advanced-filters .accordion-sales-history-header .center {
    font-size: 20px;
  }
}


/* === Premium look & feel (scoped to advanced filters) === */
:root {
  --pro-accent: #004E98;       /* muted gold */
  --pro-accent-ink: black;   /* deep gold for text */
  --pro-ring: rgba(100, 116, 139, 0.25); /* cool grey focus ring */
  --pro-soft: rgba(0,0,0,.04);
}

/* One-card wrapper so header + content are connected (no gap) */
#comicSearchForm .advanced-filters {
  background: #fff;
  border: 1px solid rgba(0,0,0,.08);
  border-radius: 6px;
  box-shadow: 0 6px 18px rgba(0,0,0,.08);
  overflow: hidden; /* stitches header and body */
}

/* Header: gradient, crisp chevron; wrapper owns border/shadow */
#comicSearchForm .advanced-filters .accordion-sales-history-header {
  position: relative;
  margin: 0;
  width: 100%;
  padding: 12px 16px;
  background: linear-gradient(180deg, #ffffff, gainsboro);
  border: 0; /* wrapper has border */
  border-bottom: 1px solid rgba(0,0,0,.06);
  border-radius: 6px; /* rounded when closed */
  box-shadow: none;    /* wrapper has shadow */
  transition: transform .08s ease, box-shadow .2s ease;
  cursor: pointer;
}

#comicSearchForm .advanced-filters .accordion-sales-history-header:hover {
  transform: translateY(-1px);
}

#comicSearchForm .advanced-filters .accordion-sales-history-header .center {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;      /* matches your heading size */
  font-weight: 800;
  color: var(--pro-accent-ink);
  line-height: 1.2;
}

#comicSearchForm .advanced-filters .accordion-sales-history-header .fa-chevron-down {
  transition: transform .2s ease;
}
#comicSearchForm .advanced-filters .accordion-sales-history-header .fa-chevron-down.rotate {
  transform: rotate(180deg);
}

/* Little gold "PRO" pill (optional to show) */
#comicSearchForm .advanced-filters .badge-pro {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .4px;
  color: #fff;
  background: var(--pro-accent);
  padding: 4px 8px;
  border-radius: 999px;
  line-height: 1;
  box-shadow: 0 2px 6px rgba(100, 116, 139, 0.25);
}

/* Body: connected to header; wrapper owns border/radius */
#comicSearchForm .advanced-filters .accordion-content {
  margin: 0;                 /* no gap */
  padding: 14px 12px;
  border: 0;                 /* wrapper has border */
  border-radius: 0;          /* wrapper handles rounding */
  background: #fff;
  box-shadow: none;

  /* ✅ Center inline-block children like your non-premium row */
  text-align: center;
}

/* When open, square off header’s bottom corners to join the card */
#comicSearchForm .advanced-filters.open .accordion-sales-history-header {
  border-radius: 12px 12px 0 0;
}

/* ---------- Controls: match your non-premium formatting ---------- */
/* Labels */
#comicSearchForm .advanced-filters .accordion-content label {
  /* your centered version uses inline-block with centered container */
  display: inline-block;
  vertical-align: middle;
  font-weight: bold;
  font-size: 18px;
  margin-bottom: 8px;   /* same spacing as your working snippet */
  text-align: center;   /* keep label text centered */
}

/* Selects */
#comicSearchForm .advanced-filters .accordion-content select {
  display: inline-block;
  vertical-align: middle;
  font-size: 14px;
  width: 75%;                 /* same visual width as your working snippet */
  padding: 3px;
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #000;
  border-radius: 4px;
  box-sizing: border-box;

  /* this margin controls inter-filter spacing */
  margin-bottom: 24px;        /* same as your working snippet */
}

/* Advanced Filters heading size (only the text span, not the chevron) */
#comicSearchForm .advanced-filters .accordion-sales-history-header .center {
  font-size: 22px;     /* tweak to taste: 20–24px */
  font-weight: 800;    /* optional: make it pop a bit more */
  line-height: 8px;
}

/* Optional: slightly smaller on phones */
@media (max-width: 767px) {
  #comicSearchForm .advanced-filters .accordion-sales-history-header .center {
    font-size: 20px;
  }
  /* stack cleanly on mobile if needed */
  #comicSearchForm .advanced-filters .accordion-content label,
  #comicSearchForm .advanced-filters .accordion-content select {
    display: block;
    width: 100%;
    max-width: 480px;
    margin-left: auto;
    margin-right: auto;
  }
}


/* ===== Premium Page (scoped) ===== */
:root { --header-h: 72px; } /* set to your fixed navbar height */

.premium-page {
  font-family: inherit;
  color: #0f172a;
  /* ensure hero isn’t hidden under fixed header (includes iOS safe area) */
  padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px) + 16px);
}

/* HERO */
.premium-hero {
  background: white;
  border: 1px solid rgba(15,23,42,0.06);
  border-radius: 16px;
  padding: 64px 24px 40px;       /* more top padding for breathing room */
  margin: 16px auto 28px;        /* page top padding handles header overlap */
  max-width: 1100px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  text-align: center;            /* center headline/subcopy/CTA */
}

.premium-hero h1 {
  font-size: 36px;
  line-height: 1.1;
  margin: 0 0 10px;
  letter-spacing: -0.02em;
}

.premium-hero p.hero-sub {
  font-size: 18px;
  color: #334155;
  margin: 6px 0 18px;
}

/* keep bullets readable, centered block with left-aligned text */
.premium-hero .hero-bullets {
  display: grid;
  gap: 10px;
  margin: 16px auto 22px;
  max-width: 750px;
  text-align: left;
}
.premium-hero .hero-bullets li {
  list-style: none;
  font-size: 16px;
  color: #1f2937;
}

/* Centered CTA row */
.premium-hero .cta-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  flex-wrap: wrap;
}
.cta-primary {
  display: inline-block;
  background: #004E98;
  color: #fff;
  font-weight: 700;
  text-decoration: none;
  padding: 12px 18px;
  border-radius: 12px;
  box-shadow: 0 10px 24px rgba(0,78,152,0.25);
}
.cta-secondary {
  color: #004E98;
  text-decoration: underline;
  font-weight: 600;
}

/* Centered badges under CTA */
.premium-hero .hero-badges {
  display: flex;
  justify-content: center;   /* ← center badges */
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 10px;
}
.hero-badge {
  font-size: 12px;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 6px 10px;
  border-radius: 999px;
}

/* Feature grid */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 10px auto 28px;
  max-width: 1100px;
}
.feature {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 18px;
  background: #fff;
}

.image-container {
  width: 100%;
  aspect-ratio: 16 / 10;           /* reserves space to prevent layout shift */
  overflow: hidden;
  border-radius: 12px;
  background: #f6f8fb;             /* subtle placeholder */
}

.feature-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.feature .icon { font-size: 22px; }
.feature h3 { margin: 8px 0 6px; font-size: 18px; }
.feature p { margin: 0; color: #475569; font-size: 14px; }

/* Optional info block style (repurposed from value-proof) */
.value-proof {
  max-width: 1100px;
  margin: 0 auto 30px;
  padding: 18px;
  border: 1px dashed #cbd5e1;
  border-radius: 14px;
  background: #f8fafc;
}
.value-proof h3 { margin: 0 0 8px; }
.value-inline { font-weight: 700; color: #0f172a; }

/* Compare table */
.compare {
  max-width: 1100px;
  margin: 0 auto 30px;
  padding-inline: clamp(16px, 5vw, 24px); /* clamps header + table together */
  /* strip card chrome from here */
  border: none;
  background: transparent;
  overflow: visible;
}

.compare-table-wrap {
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;                /* keeps table corners rounded */
}


.compare table { width: 100%; border-collapse: collapse; }
.compare th, .compare td {
  padding: 12px;
  border-bottom: 1px solid #f1f5f9;
  text-align: left;
}
.compare th {
  background: #f8fafc;
  font-weight: 700;
}
.check { color: #16a34a; font-weight: 700; }
.x { color: #991b1b; font-weight: 700; }

/* Trust badges row */
.trust {
  max-width: 1100px;
  margin: 0 auto 28px;
  text-align: center;
  color: #475569;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}
.trust .t {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 13px;
}

/* FAQ */
.faq-container { max-width: 1100px; margin: 0 auto 40px; }
.faq-item {
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}
.faq-header {
  padding: 14px 16px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.faq-answer { padding: 12px 16px; color: #475569; display: none; }
.faq-item.open .faq-answer { display: block; }

/* Plans anchor spacing respecting fixed header */
#plans, #faq { scroll-margin-top: calc(var(--header-h) + 16px); }

/* Compare header */
.compare-head {
  text-align: center;
  margin: 10px 0 14px;
}
.compare-head h2 {
  margin: 0;
  font-size: 1.5rem;         /* 24px */
  line-height: 1.2;
  letter-spacing: .2px;
  color: #0f172a;
}
.compare-head .compare-sub {
  margin: 6px 0 0;
  color: #475569;
  font-size: 0.95rem;        /* ~15px */
}

/* Optional wrapper to control side padding separately from grid */
.compare-wrap {
  padding-inline: clamp(16px, 5vw, 24px);
}


/* Features header */
.features-head {
  text-align: center;
  margin: 0 0 14px;
}
.features-head h2 {
  margin: 0;
  font-size: 1.5rem;            /* 24px */
  line-height: 1.2;
  letter-spacing: .2px;
  color: #0f172a;
}
.features-head .features-sub {
  margin: 6px 0 0;
  color: #475569;
  font-size: 0.95rem;           /* ~15px */
}

/* Optional wrapper to control side padding separately from grid */
.feature-grid-wrap {
  padding-inline: clamp(16px, 5vw, 24px);
}

/* Responsive */
@media (max-width: 960px) {
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .premium-hero { padding: 48px 16px 28px; }
  .premium-hero h1 { font-size: 28px; }
  .feature-grid { grid-template-columns: 1fr; }
}

/* Center EVERYTHING inside the Collector’s Edge panel only */
.accordion-content[data-target="/future_projections"] {
  text-align: center;               /* center text */
}

/* Stack & center children (rating summary, h2, note, chart, table) */
.accordion-content[data-target="/future_projections"] .future-projections-content {
  display: flex;
  flex-direction: column;
  align-items: center;              /* center blocks horizontally */
  gap: 12px;
}

/* Constrain and center the chart wrapper */
.accordion-content[data-target="/future_projections"] .projection-chart-wrapper {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

/* Make the canvas center nicely and scale with the wrapper */
.accordion-content[data-target="/future_projections"] canvas {
  display: block;
  width: 100% !important;
  margin: 0 auto;
}

/* Center any tables (including those from rating summary or JS-injected) */
.accordion-content[data-target="/future_projections"] table {
  margin: 12px auto !important;
  width: 100%;
  max-width: 900px;
}

/* Keep headings/notes centered and constrained */
.accordion-content[data-target="/future_projections"] h2,
.accordion-content[data-target="/future_projections"] p {
  margin-left: auto;
  margin-right: auto;
  max-width: 900px;
}

/* value nudge under hero-sub */
.value-nudge {
  margin: 8px auto 6px;
  color: black;
font-weight: bold;
      font-size: 18px;

}
.value-nudge .sub-nudge {
    margin: 8px auto 6px;
  color: grey;
  font-weight: 500;
  font-size: 14px;
}

  .uv-chart-head { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:8px 0 6px; }
  .uv-density-wrap { display:flex; justify-content:center; gap:8px; flex-wrap:wrap; align-items:center; }
  .uv-density-badge {
    font-size:12px; line-height:1; padding:6px 8px; border-radius:999px;
    background:#f3f6fb; border:1px solid #e4e9f3; color:#223;
  }
    .uv-vol-pill {
    font-size:12px; line-height:1; padding:6px 10px; border-radius:999px;
    border:1px solid;
  }
  .uv-vol-low {
    background:#fff4f4; border-color:#f7c2c2; color:#8b1a1a;
  }
  .uv-vol-caution {
    background:#fff9ec; border-color:#f7dfb9; color:#7a5200;
  }
  .uv-log-toggle { font-size:12px; color:#334; display:flex; align-items:center; gap:6px; }

  .uv-graph-wrap { width:100%; }



/* Media query for mobile devices */
@media only screen and (max-width: 767px) {
    .menu-toggle {
        display: block; /* Display hamburger icon */
        cursor: pointer; /* Set cursor to pointer */
        font-size: 45px; /* Increase the size of the hamburger icon */
        padding: 10px; /* Add padding to increase clickable area */
        position: fixed; /* Position the toggle button */
        right: 10px; /* Adjust the right position */
        z-index: 10000; /* Ensure the toggle button appears above the menu */
        border: none;
        background-color: white; /* Remove background color */
    }

    .intro {
        display: none; /* Hide menu items by default */
        position: fixed; /* Position the menu container */
        top: 0; /* Align the menu to the top of the viewport */
        right: 0; /* Align the menu to the right side of the viewport */
        bottom: 0; /* Align the menu to the bottom of the viewport */
        flex-direction: column; /* Arrange items vertically */
        justify-content: flex-start;
        align-items: center; /* Align items to the center */
        list-style: none;
        padding: 50px;
        border: 1px solid darkgrey; /* Add border around menu */
        background-color: white; /* Add background color */
        max-width: 100%; /* Limit the width of the menu */
        overflow-y: auto; /* Enable scrolling if the content overflows */
        z-index: 9999; /* Ensure the menu appears above other content */
    }


    .intro.active {
        display: flex; /* Show menu items when active */
    }

    .nav-link {
        display: block; /* Display menu items */
        margin: 10px; /* Add margin between menu items */
    }


    /* Hamburger icon */
    .menu-toggle::before {
        content: '\2630'; /* Hamburger icon (☰) */
        font-size: 45px; /* Increase the size of the hamburger icon */
        color: black;
    }

    /* X icon */
    .menu-toggle.intro-x::before {
        content: '\2715'; /* Multiplication X (✖) */
        font-size: 30px; /* Increase the size of the X icon */
    }

    /* Hide hamburger icon when menu is active */
    .intro.active .menu-toggle {
        display: none;
    }

    .container {
        flex-direction: column; /* Stack items vertically */
        padding: 0; /* Add padding to the container */
        align-items: center;
        position: relative;
        width: auto;

    }

    .column {
        width: 80%; /* Make columns full width */
        margin: 0; /* Remove margin */
        color: black;
    }

    .search-section {
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        width: 75%; /* Adjust width to fit content */
        margin: 0 auto; /* Center the search section horizontally */
        color: black;
    }

    .cover-container-desktop {
        display: none; /* Hide desktop cover container on mobile */
    }

    .cover-container-mobile {
        display: block;
        margin-top: 300px; /* Adjust margin as needed for mobile */
    }

    .cover-container-mobile-accordion {
        display: block;
        margin-top: 250px; /* Adjust margin as needed for mobile */
    }

    #selectedComicImage {
        margin-top: 20px; /* Adjust margin to create space for the search section */
        margin-bottom: 20px;
    }

    .data-table {
        margin: 0 auto; /* Center the data tables */
        width: 100%;
        max-width: 100%;
    }

    .comics-section {
        margin: 0 auto; /* Center the comics section */
        width: 100%;
        max-width: 100%;
    }

    .data-table table {
        width: 100%; /* Make tables full width */
        max-width: 100%;
        margin-bottom: 20px; /* Add spacing between tables */
    }

    .comics-section-sales-history table {
        display: none; /* this hides the sales history old table */
    }

    .comics-section table {
        text-align: center;
        max-width: 100%; /* Adjust the maximum width as needed */
        overflow-y: scroll; /* Add a vertical scroll bar, always visible */
        max-height: 1000px; /* Set a maximum height to enable scrolling */
        /*margin-left: auto; !* Align to the right side *!*/
        /*margin-right: auto; !* Add right margin *!*/
        display: inline-block; /* Display as inline block to allow margin adjustments */
    }

    .comics-section.table tr {
        display: block;
        width: 100%; /* Make each comic item full width on mobile */
        max-width: 100%;
        align-items: center;
        margin-bottom: 20px; /* Add spacing between items */
    }

    .comics-section.table td {
        display: block;
        width: auto; /* Make each comic item full width on mobile */
        text-align: center;
        border-bottom: 1px solid #ccc;
        border-radius: 0px;
    }

    .comics-section.table thead {
        display: none; /* Hide thead on mobile */
    }

    table.center {
        margin: auto;
        /*border-collapse: collapse;*/
        /*width: 100%;*/
    }

    .header {
        font-size: 14px; /* Reduce font size for headers */
    }

    .header,
    td,
    th {
        padding: 8px; /* Adjust padding for better spacing */
    }

    .thumbnail {
        width: 50%; /* Reduce image size */
        height: auto;
        padding-bottom: 2px;
    }


    select {
        color: black; /* Set the text color to black */
    }

    select,
    input[type="submit"] {
        width: 100%; /* Make form elements full width */
    }

    /* Define the style for the announcement banner */
    .announcement-banner {
        background-color: #004E98; /* Choose your desired background color */
        padding: 0; /* Add some padding for better spacing */
        color: white;
        text-align: center; /* Center-align text */
        width: 100%; /* Make the announcement banner span the entire width */
        position: fixed; /* Fix the position of the announcement banner */
        top: 0; /* Align the announcement banner to the top */
        z-index: 2000; /* Ensure the announcement banner stays above other content */
        font-size: 12px;
        font-weight: bold;
    }

    .advanced-view {
        width: 100%;
        box-sizing: border-box;
        overflow-x: hidden;
    }

    .advanced-view .plotly-graph-div {
        width: 100%;
        max-width: 100%;
        height: auto;
    }

    .desktop-view {
        display: none;
    }

    .mobile-view {
        display: block;
    }

    .mobile-view-old {
        display: block;
    }

    .metrics-table {
        display: none; /* Hide table on mobile */
    }

    .mobile-card-container {
        display: flex; /* Show cards on mobile */
        flex-direction: column;
        gap: 16px;
        padding: 16px;
    }

    .mobile-card {
        display: flex;
        flex-direction: column;
        background-color: #ffffff;
        padding: 16px;
        border: 1px solid #ddd;
        border-radius: 8px;
        box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    }

    .card-row {
        display: flex;
        justify-content: space-between;
        padding: 4px 0;
        border-bottom: 1px solid #ddd;
    }

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

    .card-row label {
        font-weight: bold;
    }

    .card-row span {
        text-align: right;
    }

    .add-to-comparison {
        margin-top: 10px;
        background-color: #004E98;
        color: white;
        padding: 12px;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        text-align: center;
        font-weight: bold;
    }

    .add-to-comparison:hover {
        background-color: #0056b3;
    }

    .button-container {
        display: grid;
        grid-template-columns: 1fr;
        gap: 10px;
        margin-top: 20px;
    }

    .button-container button {
        font-size: 14px;
        padding: 12px;
        width: 100%;
    }

    .footer-content {
        flex-direction: column; /* Stack content vertically on mobile */
        align-items: center;
        text-align: center;
    }

    footer {
        padding: 20px 10px; /* Adjust padding on smaller screens */
    }

    .listed-price-mobile-only {
        display: block; /* Forces it to appear as a separate line on mobile */
        text-align: center;
    }

    .price-value {
        display: block; /* Makes the price appear below the label */
    }

    .watchlist-content {
        padding: 60px 20px; /* smaller padding on phones */
        max-width: 100%; /* let it use the full width */
    }

      #comicSearchForm .accordion-content select {
    width: 100%;
    margin-right: 0;
  }
  #comicSearchForm .accordion-content label {
    margin-right: 6px;
  }

}

