/* ==========================================================================
   BUYER MARKET STATE - canonical tokens (2026-08-01, Buyer-First Market Language)

   One shared set of state tokens, reused by the Buying Recommendation card,
   the Price History chart, and the vs-round comparison - replacing six
   separate ad-hoc color-naming schemes found across this codebase (dp-hist-
   up/down, is-up/down on Search, ttb-good/warn, tv-good/warn/flat,
   mk-warn/flat, vsround--up/down), all of which named the color by PRICE
   DIRECTION rather than BUYER OUTCOME.

   Reused, not invented: buyer/balanced values are the exact hex pairs
   market-context.js's badge already used for "positive"/"caution" - this is
   an extension of that system (adding the missing "seller" tier it never
   had), not a fourth, fifth, sixth color scheme.

   Do not reuse navy (#264265, brand/Best Overall) or blue (#1d4ed8, the
   rail's Best Overall marker) for market state - both already carry a
   distinct, established meaning on this site.
   ========================================================================== */
:root {
    --tdp-state-buyer-text:    #047857;
    --tdp-state-buyer-bg:      #ecfdf5;
    --tdp-state-buyer-border:  #a7f3d0;
    --tdp-state-balanced-text:   #92400e;
    --tdp-state-balanced-bg:     #fef3c7;
    --tdp-state-balanced-border: #fde68a;
    --tdp-state-seller-text:   #b91c1c;
    --tdp-state-seller-bg:     #fef2f2;
    --tdp-state-seller-border: #fecaca;
    --tdp-state-neutral-text:  #64748b;   /* supporting facts, not a verdict */
}

/* ==========================================================================
   TODAY'S RECOMMENDATION - buying-recommendation.php (2026-08-01)
   Card border/left-accent uses the state token; everything else is neutral ink,
   so the ONE colored element is the state itself, not five different colored lines.
   ========================================================================== */
.tdp-rec {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-left: 4px solid var(--tdp-state-balanced-text);
    border-radius: 12px;
    padding: 20px 24px;
    margin: 18px 0px 0px;
    font-family: 'Nunito Sans', sans-serif;
}
.tdp-rec--buyer   { border-left-color: var(--tdp-state-buyer-text); }
.tdp-rec--seller  { border-left-color: var(--tdp-state-seller-text); }

.tdp-rec-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.tdp-rec-eyebrow {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #264265;
}
.tdp-rec-stars {
    font-size: 1.1rem;
    letter-spacing: 2px;
    color: var(--tdp-state-balanced-text);
}
.tdp-rec--buyer  .tdp-rec-stars {color: #00a651;}
.tdp-rec--seller .tdp-rec-stars { color: var(--tdp-state-seller-text); }

.tdp-rec-verdict {
    margin: 2px 0 2px;
    font-size: 1.15rem;
    font-weight: 800;
    color: #00a651;
}
.tdp-rec-confidence {
    margin: 0 0 10px;
    font-size: 0.78rem;
    color: #94a3b8;
    display: none;
}
.tdp-rec-body {
    margin: 0 0 12px;
    font-size: 0.95rem;
    line-height: 1.55;
    color: #334155;
}
.tdp-rec-why {
    border-top: 1px solid #f1f5f9;
    padding-top: 10px;
}
.tdp-rec-why-label {
    font-size: 0.78rem;
    font-weight: 700;
    color: #64748b;
}
.tdp-rec-why-list {
    list-style: none;
    margin: 6px 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.tdp-rec-why-list li {
    font-size: 0.85rem;
    color: #475569;
}

/* Live Time Indicator */
.live-indicator-prices {
    color: #4caf50;
    font-weight: 600;
    animation: pulse-prices 2s ease-in-out infinite;
    margin-right: 8px;
}

@keyframes pulse-prices {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

.updated-date {
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    color: #888;
    margin: 10px 0 20px;
}

.diamond-type-tabs {
    display: flex;
    gap: 1rem;
    margin-bottom: 1.5rem;
    display: none;
}

.tab-button {
    padding: 0.75rem 1.5rem;
    border: 1px solid #e0e0e0;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.tab-button:hover {
    background: #f5f5f5;
}

.tab-button.active {
    background: #007bff;
    color: white;
    border-color: #0056b3;
}

.diamond-shape-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    margin-bottom: 2rem;
    display: none;
}

.shape-tab-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 18px;
    border: 2px solid #e0e0e0;
    background: white;
    border-radius: 24px;
    cursor: pointer;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.shape-tab-button .shape-icon {
    width: 24px;
    height: 24px;
    object-fit: contain;
    filter: grayscale(100%);
    transition: filter 0.3s ease;
}

.shape-tab-button:hover {
    background: #f8f9fa;
    border-color: #007bff;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,123,255,0.15);
}

.shape-tab-button:hover .shape-icon {
    filter: grayscale(0%);
}

.shape-tab-button.active {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border-color: #007bff;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.shape-tab-button.active .shape-icon {
    /* filter: brightness(0) invert(1); */
}

.snapshot-container {
    background: white;
    border-radius: 8px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    padding: 1.5rem;
    margin-bottom: 2rem;
}

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

.snapshot-header h4 {
    margin: 0;
    color: #333;
    font-size: 1.2rem;
}

.update-date {
    color: #666;
    font-size: 0.9rem;
}

.price-index-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1rem;
    font-size: 14px;
}

.price-index-table th {
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #333;
    background-color: #f8f9fa;
    border-bottom: 2px solid #dee2e6;
    white-space: nowrap;
}

.price-index-table td {
    padding: 14px 16px;
    border-bottom: 1px solid #f0f0f0;
    color: #555;
}

.price-index-table tbody tr:hover {
    background-color: #f8f9fa;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.price-index-cell {
    padding: 16px !important;
}

.index-title {
    font-size: 16px;
    font-weight: 600;
    color: #333;
    margin-bottom: 4px;
}

.index-shape {
    font-size: 14px;
    color: #888;
}

.chart-cell {
    padding: 12px 16px !important;
    text-align: center;
    vertical-align: middle;
}

.mini-chart-prices {
    display: block;
    margin: 0 auto;
    max-width: 150px;
    height: 50px;
}

.price-cell {
    font-weight: 600;
    color: #333;
    font-size: 16px;
}

.best-deal-cell {
    text-align: left;
}

.best-deal-price {
    font-weight: 600;
    color: #2e7d32;
    font-size: 16px;
    margin-bottom: 4px;
}

.discount-badge {
    display: inline-block;
    background-color: #e6f7ee;
    color: #00a651;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.clickable-price-row {
    cursor: pointer;
}

/* Primary CTA Button - Best Deal */
.best-deal-button {
    padding: 10px 20px;
    background: #28a745;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 700;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(40, 167, 69, 0.2);
}

.best-deal-button:hover {
    background: #218838;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(40, 167, 69, 0.4);
}

.live-data-cell {
    text-align: center;
}

/* Secondary Button - View Details (less prominent) */
.quality-button-secondary {
    padding: 6px 12px;
    background: transparent;
    color: #6c757d;
    border: 1px solid #dee2e6;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.quality-button-secondary:hover {
    background: #f8f9fa;
    color: #495057;
    border-color: #adb5bd;
}

/* Legacy quality button (keep for backwards compatibility) */
.quality-button {
    padding: 8px 16px;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.quality-button:hover {
    background: #0052a3;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 102, 204, 0.3);
}

/* Color-coded trend indicators */
.trend-down-green {
    color: #00a651;
    background-color: #e6f7ee;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trend-up-orange {
    color: #ff6f00;
    background-color: #fff3e0;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.trend-neutral {
    color: #757575;
    background-color: #f5f5f5;
    padding: 6px 12px;
    border-radius: 6px;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* Quality Levels Modal - Professional Design */
.quality-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10000;
    display: flex;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.quality-modal.active {
    opacity: 1;
}

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

.quality-modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    max-width: 1000px;
    width: 95%;
    max-height: 90vh;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    transform: scale(0.9);
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
}

.quality-modal.active .quality-modal-content {
    transform: scale(1);
}

.quality-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.75rem 2rem;
    border-bottom: 2px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.quality-modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 600;
    color: #1f2024;
    font-family: 'PT Sans', sans-serif;
}

.close-modal {
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    transition: all 0.2s ease;
    color: #666;
}

.close-modal:hover {
    background: #f0f0f0;
    color: #333;
    transform: rotate(90deg);
}

.quality-modal-body {
    padding: 2rem;
    overflow-y: auto;
    flex: 1;
}

.quality-modal-description {
    margin: 0 0 1.5rem 0;
    color: #666;
    font-size: 0.95rem;
    text-align: center;
}

.quality-modal-body .error-message {
    text-align: center;
    padding: 3rem 2rem;
    color: #666;
}

.quality-modal-body .error-message p {
    margin: 0;
    font-size: 1rem;
}

.quality-modal-body .error-message p:first-child {
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
}

.quality-levels-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.25rem;
}

.quality-level-card {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 12px;
    padding: 1.5rem;
    transition: all 0.3s ease;
}

.quality-level-card:hover {
    border-color: #007bff;
    box-shadow: 0 8px 24px rgba(0, 123, 255, 0.15);
    transform: translateY(-4px);
}

.quality-level-highlight {
    background: linear-gradient(135deg, #f0f7ff 0%, #e6f2ff 100%);
    border-color: #007bff;
    border-width: 2px;
}

.quality-level-header {
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid #e0e0e0;
}

.quality-level-title {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.quality-level-title h4 {
    margin: 0;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1f2024;
}

.quality-badge {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.quality-level-subtitle-wrapper {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.quality-level-subtitle {
    margin: 0;
    font-size: 0.9rem;
    color: #007bff;
    font-weight: 500;
    line-height: 1.4;
    flex: 1;
}

.quality-info-icon {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: help;
    color: #007bff;
    transition: all 0.2s ease;
    flex-shrink: 0;
    z-index: 99999999;
}

.quality-info-icon:hover {
    color: #0056b3;
    transform: scale(1.1);
}

.quality-info-icon::before {
    content: attr(data-tooltip);
    position: absolute;
    bottom: calc(100% - 80px);
    left: 0%;
    transform: translateX(-92%);
    background: #202024db;
    backdrop-filter: blur(1px);
    color: white;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-size: 12px;
    line-height: 1.3;
    white-space: normal;
    width: 280px;
    max-width: 200px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    font-weight: 400;
    backdrop-filter: blur(11px);
}

.quality-info-icon::after {
    content: '';
    position: absolute;
    bottom: calc(100% + 2px);
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    /* border-top-color: #1f2024; */
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    pointer-events: none;
    z-index: 9999999999999;
}

.quality-info-icon:hover::before,
.quality-info-icon:hover::after,
.quality-info-icon.tooltip-active::before,
.quality-info-icon.tooltip-active::after {
    opacity: 1;
    visibility: visible;
}

.quality-level-desc {
    margin: 0.75rem 0 0 0;
    font-size: 0.85rem;
    color: #666;
    line-height: 1.6;
    background: #f8f9fa;
    padding: 0.75rem;
    border-radius: 6px;
    border-left: 3px solid #007bff;
}

.quality-level-stats {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 1rem;
}

.quality-stat {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}

.quality-stat-label {
    font-size: 0.85rem;
    color: #666;
    font-weight: 500;
}

.quality-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1f2024;
}

.price-highlight {
    color: #007bff;
    font-size: 1.25rem;
}

/* Responsive Design for Quality Modal */
@media (max-width: 768px) {
    .quality-modal-content {
        width: 98%;
        max-height: 95vh;
        border-radius: 12px;
    }

    .quality-modal-header {
        padding: 1.25rem 1.5rem;
    }

    .quality-modal-header h3 {
        font-size: 1.25rem;
    }

    .quality-modal-body {
        padding: 1.5rem;
    }

    .quality-levels-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .quality-level-card {
        padding: 1.25rem;
    }

    .quality-stat {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.25rem;
    }

    .quality-stat-value {
        font-size: 1.1rem;
    }

    .price-highlight {
        font-size: 1.15rem;
    }

    /* Adjust tooltip for mobile */
    .quality-info-icon::before {
        width: 240px;
        font-size: 0.8rem;
        padding: 0.65rem 0.85rem;
        left: auto;
        right: 0;
        transform: none;
    }

    .quality-info-icon::after {
        /* left: auto; */
        /* right: 10px; */
        /* transform: none; */
        opacity: 1;
        visibility: visible;
    }
}

@media (max-width: 480px) {
    .quality-modal-header h3 {
        font-size: 1.1rem;
    }

    .quality-modal-body {
        padding: 1rem;
    }

    .quality-level-card {
        padding: 1rem;
    }
}

.error-message {
    color: #dc3545;
    text-align: center;
    padding: 2rem;
    font-size: 1.1rem;
}
.diamond-prices-hero {
    /* background-color: #f8f9fa; */
    padding: 120px 0px 0px 0px!important;
    text-align: center;
}

.diamond-prices-hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-transform: capitalize;
}

.diamond-prices-hero .lead {
    font-size: 1.25rem;
    color: #6c757d;
    max-width: 800px;
    margin: 0 auto;
}

.price-charts {
    padding: 60px 0;
    padding-top: 0px!important;
}

.price-chart-container {
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    padding: 20px;
    margin: 30px 0;
}

.snapshot-container {
    background: white;
    border-radius: 8px;
    /* box-shadow: 0 2px 4px rgba(0,0,0,0.1); */
    margin-bottom: 30px;
    overflow: hidden;
}

.snapshot-header {
    /* background: #f8f9fa; */
    padding: 15px 20px;
    /* border-bottom: 1px solid #e9ecef; */
}

.snapshot-header h4 {
    margin: 0;
    color: #2c3e50;
}

.update-date {
    color: #6c757d;
    font-size: 0.9rem;
}

.price-index-table {
    width: 100%;
    border-collapse: collapse;
}

.price-index-table th,
.price-index-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #e9ecef;
}

.price-index-table th {
    background-color: #f8f9fa;
    color: #495057;
    font-weight: 600;
}

.price-index-table td {
    color: #495057;
}

.quality-button {
    padding: 6px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s;
}

.quality-button:hover {
    background-color: #0056b3;
}

/* Duplicate quality modal styles removed - see lines 318-506 for the main styles */

.quality-button {
    padding: 5px 10px;
    background-color: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.quality-button:hover {
    background-color: #0056b3;
}

.snapshot-container {
    margin-bottom: 30px;
}

.price-index-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.price-index-table th,
.price-index-table td {
    padding: 10px;
    border: 1px solid #ddd;
    text-align: center;
}

.price-index-table th {
    background-color: #f5f5f5;
}
.price-index-container {
    display: flex;
    flex-direction: column;
    gap: 30px;
    margin-top: 30px;
}

.diamond-type-section {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.diamond-type-section h3 {
    color: #333;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid #f0f0f0;
    display: none;
}

.snapshot-container {
    margin-bottom: 30px;
}

.snapshot-container:last-child {
    margin-bottom: 0;
}

.price-index-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 15px;
}

.price-index-table th,
.price-index-table td {
    padding: 12px;
    border: 1px solid #eee;
    text-align: center;
}

.price-index-table th {
    background: #f8f9fa;
    color: #2c3e50;
    font-weight: 600;
}

.price-index-table tr:hover {
    background: #f8f9fa;
}

.quality-button {
    padding: 6px 12px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.3s;
}

.quality-button:hover {
    background: #0056b3;
}
.price-overview {
    margin-top: 40px;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
}

.price-header {
    margin-bottom: 32px;
    text-align: center;
}

.price-header h2 {
    font-size: 1.8em;
    color: #2c3e50;
    margin: 8px 0;
}

.time-period {
    color: #666;
    font-size: 0.95em;
    font-weight: 500;
    display: block;
    margin-bottom: 8px;
}

.price-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    padding-bottom: 8px;
}

.price-grid::-webkit-scrollbar {
    height: 6px;
}

.price-grid::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.price-grid::-webkit-scrollbar-thumb {
    background: #007bff;
    border-radius: 10px;
}

.price-grid::-webkit-scrollbar-thumb:hover {
    background: #0056b3;
}

.price-card {
    padding: 24px;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    background: white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    min-width: 280px;
    flex-shrink: 0;
}

.price-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #007bff 0%, #0056b3 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.price-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    border-color: #007bff;
}

.price-card:hover::before {
    opacity: 1;
}

.price-info h3 {
    margin: 0 0 12px 0;
    font-size: 1.15em;
    color: #2c3e50;
    font-weight: 600;
}

.price-value {
    display: block;
    font-size: 2.2em;
    font-weight: 700;
    color: #007bff;
    margin: 12px 0;
    letter-spacing: -0.5px;
}

.price-change {
    display: inline-block;
    font-size: 0.9em;
    padding: 4px 10px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 8px;
}

.price-change.negative {
    background-color: #e6f7ee;
    color: #00a651;
}

.price-change.positive {
    background-color: #fff3e0;
    color: #ff6f00;
}

.trend-text.negative {
    color: #00a651;
}

.trend-text.positive {
    color: #ff6f00;
}

.price-stats {
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid #f0f0f0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-item .label {
    font-size: 0.8em;
    color: #888;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 4px;
    font-weight: 600;
}

.stat-item .value {
    font-size: 1.1em;
    font-weight: 600;
    color: #2c3e50;
}
span.trend-shapeName {
    font-weight: 700;
}
.mainStructure {
    /* padding: 0px 95px 0px 100px; */
    background-color: #ffffff;
}

section.section.diamond-guides {
    background: white;
    /* padding: 60px 0; */
}

section.section.diamond-guides h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
    text-transform: capitalize;
    font-weight: 700;
    text-align: center;
}

section.section.diamond-guides > .container > p {
    text-align: center;
    color: #666;
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.guides-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 2rem;
}

.guide-item {
    background: white;
    border-radius: 16px;
    padding: 32px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.guide-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.guide-item h4 {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 1.25rem;
    font-weight: 700;
    padding-bottom: 16px;
    border-bottom: 3px solid #007bff;
}

.guide-shape-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.guide-summary {
    margin-bottom: 1.5rem;
}

.guide-summary p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin-bottom: 1rem;
}

.guide-summary a {
    color: #007bff;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
}

.guide-summary a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.guide-highlight {
    color: #007bff !important;
    font-weight: 600 !important;
}

.guide-price-link strong {
    color: #2e7d32;
    font-size: 1.1em;
}

.guide-deal-link strong {
    color: #00a651;
    font-size: 1.05em;
}

.guide-trend {
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.guide-trend.trend-down {
    color: #00a651;
    background-color: #e6f7ee;
}

.guide-trend.trend-up {
    color: #ff6f00;
    background-color: #fff3e0;
}

.guide-cta-button {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.guide-cta-button:hover {
    transform: translateX(4px);
    box-shadow: 0 6px 16px rgba(0,123,255,0.4);
}

section.section.diamond-faq h2 {
    font-size: 2.5rem;
    margin-bottom: 1.5rem;
    color: #2c3e50;
    text-transform: capitalize;
}

section.section.diamond-faq h4 {
    font-size: 20px;
    font-weight: 400;
}

.faq-item p {
    margin-bottom: 10px;
}

.mainStructure section {
    /* padding: 140px 45px 0px 318px; */
}
p.updated-date span {
    color: #28a745;
}

p.updated-date {
    margin-top: 30px;
}

/* ========================================
   MOBILE SUB-HEADER (Mobile Only)
   ======================================== */

.mobile-sub-header {
    display: none; /* Hidden on desktop */
    position: fixed;
    top: 77px; /* Below main header */
    left: 0;
    width: 100%;
    background: white;
    border-bottom: 1px solid #e0e0e0;
    padding: 12px 20px;
    z-index: 999998;
    align-items: center;
    gap: 12px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.mobile-filter-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    background: #264265;
    color: white;
    border: none;
    border-radius: 8px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.mobile-filter-btn:hover {
    background: #0056b3;
}

.mobile-filter-btn svg {
    flex-shrink: 0;
}

.mobile-active-selection {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1a1a1a;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ========================================
   BREADCRUMB NAVIGATION STYLES
   ======================================== */

.breadcrumb-nav {
    background: white;
    padding: 16px 0;
    border-bottom: 1px solid #e0e0e0;
    /* margin-top: 280px; */ /* Push below hero section (header ~63px + hero padding 120px + content ~100px) */
    position: relative;
    z-index: 999999; /* Below header but above content */
    padding-top: 75px;
    margin-bottom: 28px;
    position: fixed;
    width: 100%;
}

.breadcrumb-container {
    max-width: 1300px;
    margin: 0 auto;
    padding: 0 20px;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    list-style: none;
    margin: 0;
    padding: 0;
    gap: 8px;
    align-items: center;
}

.breadcrumb-item {
    display: flex;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
}

.breadcrumb-item:not(:last-child)::after {
    content: "›";
    margin-left: 8px;
    color: #999;
    font-size: 1.1rem;
}

.breadcrumb-item a {
    color: #007bff;
    text-decoration: none;
    transition: color 0.2s ease;
}

.breadcrumb-item a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.breadcrumb-item:last-child {
    color: #333;
    font-weight: 500;
}

/* ========================================
   FAQ SECTION STYLES
   ======================================== */

section.section.diamond-faq {
    /* background: #f8f9fa; */
    /* padding: 60px 0; */
    margin-bottom: 120px;
}

section.section.diamond-faq h2 {
    font-size: 2.5rem;
    margin-bottom: 2rem;
    color: #2c3e50;
    text-align: center;
    font-weight: 700;
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
    max-width: 1200px;
    margin: 0 auto;
}

.faq-item {
    background: white;
    border-radius: 12px;
    padding: 28px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: all 0.3s ease;
    border: 1px solid #e0e0e0;
}

.faq-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
    border-color: #007bff;
}

.faq-item h4 {
    font-size: 1.2rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.4;
}

.faq-item p {
    font-size: 1rem;
    line-height: 1.7;
    color: #555;
    margin: 0;
}

/* ========================================
   SHAPE HERO CONTENT STYLES
   ======================================== */

.shape-hero-content,
.shape-hero-content-section {
    background: linear-gradient(180deg, #f1f5f9 0%, #ffffff 100%);
    padding: 40px 0 60px;
    margin-bottom: 0;
}

.hero-content-wrapper {
    max-width: 100%;
    margin: 0 auto;
}

/* Section 1: Merged Title and Price Highlight */
.hero-price-highlight {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    /* border: 2px solid #e8f4f8; */
}

.hero-header {
    text-align: center;
    margin-bottom: 40px;
    padding-bottom: 30px;
    border-bottom: 2px solid #f0f0f0;
}

.hero-main-title {
    font-size: 2.5rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 700;
    line-height: 1.2;
}

.live-indicator-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    font-size: 0.95rem;
    color: #666;
}

.price-cards-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: flex-start;
    gap: 40px;
}

.price-main, .price-best-deal {
    text-align: center;
    flex: 1;
}

.price-value, .deal-value {
    font-size: 3.5rem;
    font-weight: 700;
    color: #007bff;
    margin-bottom: 8px;
    line-height: 1;
}

.price-value-wrapper {
    position: relative;
    display: inline-block;
}

.deal-discount-badge {
    position: absolute;
    top: -12px;
    right: -29px;
    background: linear-gradient(135deg, #00c853 0%, #00a843 100%);
    color: white;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0, 200, 83, 0.4);
    animation: pulse-badge 2s ease-in-out infinite;
}

@keyframes pulse-badge {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 2px 8px rgba(0, 200, 83, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 12px rgba(0, 200, 83, 0.6);
    }
}

.deal-value {
    color: #00a651;
}

.price-label, .deal-label {
    font-size: 1rem;
    color: #666;
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 16px;
}

.btn-price-action {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.btn-view-all-price {
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
}

.btn-view-all-price:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,123,255,0.4);
}

.btn-best-deal {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
    color: white;
}

.btn-best-deal:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(40,167,69,0.4);
}

.live-dot {
    color: #28a745;
    font-size: 1.2rem;
    animation: pulse-dot 2s ease-in-out infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

.live-text {
    font-weight: 600;
    color: #28a745;
}

.live-date {
    color: #888;
}

/* Section 2: Active Shape Details */
.hero-shape-details {
    background: white;
    border-radius: 16px;
    padding: 40px;
    margin-bottom: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    border-left: 4px solid #007bff;
}

.hero-shape-details h2 {
    font-size: 2rem;
    color: #2c3e50;
    margin-bottom: 20px;
    font-weight: 700;
}

.shape-description {
    font-size: 1.1rem;
    line-height: 1.8;
    color: #444;
    margin-bottom: 24px;
}

.shape-description strong {
    color: #007bff;
    font-weight: 600;
}

.best-deal-highlight {
    background: #f0f8ff;
    border-left: 4px solid #00a651;
    padding: 20px;
    border-radius: 8px;
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin-bottom: 24px;
}

.deal-link {
    color: #00a651;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.2s ease;
}

.deal-link:hover {
    color: #007a3d;
    text-decoration: underline;
}

.discount-badge-hero {
    display: inline-block;
    background-color: #e6f7ee;
    color: #00a651;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.9em;
    font-weight: 600;
    margin-left: 6px;
}

.hero-cta-single {
    text-align: center;
}

.btn-view-all {
    display: inline-block;
    padding: 14px 32px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1.05rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,123,255,0.3);
}

.btn-view-all:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0,123,255,0.4);
}

/* Section 3: Price Trend Summary */
.hero-price-trends {
    background: white;
    border-radius: 16px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.trend-header {
    margin-bottom: 30px;
}

.trend-header h3 {
    font-size: 1.5rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 700;
}

.trend-summary {
    font-size: 1.2rem;
    color: #444;
}

.trend-summary .trend-down {
    color: #00a651;
    font-weight: 700;
}

.trend-summary .trend-up {
    color: #ff6f00;
    font-weight: 700;
}

.carat-trends-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.carat-trend-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 24px;
    border: 1px solid #e0e0e0;
    transition: all 0.3s ease;
}

.carat-trend-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    border-color: #007bff;
}

.carat-trend-header {
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e0e0e0;
}

.carat-trend-header h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 8px;
    font-weight: 600;
}

.trend-badge-small {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
}

.trend-badge-small.negative {
    background-color: #e6f7ee;
    color: #00a651;
}

.trend-badge-small.positive {
    background-color: #fff3e0;
    color: #ff6f00;
}

.carat-trend-stats {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

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

.stat-value-large {
    font-size: 1.8rem;
    font-weight: 700;
    color: #007bff;
}

.stat-label {
    font-size: 0.9rem;
    color: #666;
    font-weight: 500;
}

.stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: #333;
}

.stat-value.positive {
    color: #00a651;
}

.stat-value.negative {
    color: #dc3545;
}

/* Section 4: Educational Section (Expandable) */
.hero-education-section {
    background: white;
    border-radius: 16px;
    margin-top: 30px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid #264264;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-education-section.expanded {
    border-color: #007bff;
}

.education-toggle {
    padding: 24px 30px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    transition: all 0.3s ease;
    user-select: none;
    position: relative;
}

.education-toggle::before {
    content: "💡";
    font-size: 1.5rem;
    margin-right: 12px;
    transition: transform 0.3s ease;
}

.hero-education-section.expanded .education-toggle::before {
    transform: scale(1.2);
}

.education-toggle:hover {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.education-question {
    font-size: 1.15rem;
    font-weight: 600;
    color: #2c3e50;
    flex: 1;
}

.education-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    /* background: #007bff; */
    color: white;
    border-radius: 50%;
    font-size: 0.9rem;
    font-weight: bold;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    /* box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3); */
    transform: rotate(-180deg);
}


.hero-education-section.expanded .education-icon {
    transform: rotate(-90deg);
    /* background: #00a651; */
    /* box-shadow: 0 2px 8px rgba(0, 166, 81, 0.3); */
}

.education-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.4, 0, 0.2, 1),
                opacity 0.4s ease,
                padding 0.4s ease;
    padding: 0 30px;
    opacity: 0;
}

.hero-education-section.expanded .education-content {
    max-height: 2000px;
    padding: 30px;
    opacity: 1;
}

.education-content h3 {
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 16px;
    font-weight: 700;
}

.education-intro {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.7;
    margin-bottom: 30px;
}

.education-details {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
}

.education-item {
    background: #f8f9fa;
    padding: 20px;
    border-radius: 12px;
    border-left: 4px solid #007bff;
}

.education-item h4 {
    font-size: 1.1rem;
    color: #2c3e50;
    margin-bottom: 12px;
    font-weight: 600;
}

.education-item p {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   MOBILE RESPONSIVE STYLES
   ======================================== */

/* Hide mobile cards on desktop */
.mobile-only {
    display: none;
}

.desktop-only {
    display: table;
}

/* Mobile breakpoint */
@media (max-width: 768px) {
    /* Show mobile cards, hide desktop table */
    .mobile-only {
        display: block;
    }

    .desktop-only {
        display: none;
    }

    /* Mobile Price Cards */
    .mobile-price-cards {
        display: flex;
        flex-direction: column;
        gap: 16px;
        padding: 0;
    }

    .price-card-mobile {
        background: white;
        border-radius: 12px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0,0,0,0.1);
        border: 1px solid #e0e0e0;
        transition: all 0.3s ease;
        cursor: pointer;
    }

    .price-card-mobile:active {
        transform: scale(0.98);
        box-shadow: 0 1px 4px rgba(0,0,0,0.1);
    }

    .card-header-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 16px;
        padding-bottom: 12px;
        border-bottom: 2px solid #f0f0f0;
    }

    .card-header-mobile h4 {
        font-size: 1.2rem;
        color: #2c3e50;
        margin: 0;
        font-weight: 700;
    }

    .trend-badge {
        padding: 4px 10px;
        border-radius: 6px;
        font-size: 0.85rem;
        font-weight: 600;
    }

    .trend-badge.trend-down {
        background-color: #e6f7ee;
        color: #00a651;
    }

    .trend-badge.trend-up {
        background-color: #fff3e0;
        color: #ff6f00;
    }

    .card-body-mobile {
        margin-bottom: 16px;
    }

    .card-row-mobile {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 12px 0;
        border-bottom: 1px solid #f5f5f5;
    }

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

    .label-mobile {
        font-weight: 600;
        color: #666;
        font-size: 0.95rem;
    }

    .value-mobile {
        font-weight: 600;
        color: #333;
        font-size: 1rem;
        text-align: right;
    }

    .value-mobile.price-highlight {
        color: #007bff;
        font-size: 1.2rem;
    }

    .value-mobile.deal-highlight {
        color: #00a651;
        font-size: 1.1rem;
    }

    .discount-badge-mobile {
        display: inline-block;
        background-color: #e6f7ee;
        color: #00a651;
        padding: 2px 6px;
        border-radius: 4px;
        font-size: 0.8rem;
        font-weight: 600;
        margin-left: 6px;
    }

    .card-chart-mobile {
        margin: 16px 0;
        padding: 12px;
        background: white;
        border-radius: 8px;
    }

    .card-chart-mobile canvas {
        width: 100% !important;
        height: auto !important;
    }

    .card-actions-mobile {
        display: flex;
        gap: 10px;
        margin-top: 16px;
    }

    .best-deal-button-mobile,
    .quality-button-mobile {
        flex: 1;
        padding: 12px 16px;
        border-radius: 8px;
        font-weight: 600;
        font-size: 0.9rem;
        border: none;
        cursor: pointer;
        transition: all 0.2s ease;
    }

    .best-deal-button-mobile {
        background: #28a745;
        color: white;
        box-shadow: 0 2px 6px rgba(40, 167, 69, 0.3);
    }

    .best-deal-button-mobile:active {
        transform: scale(0.96);
    }

    .quality-button-mobile {
        background: white;
        color: #007bff;
        border: 2px solid #007bff;
    }

    .quality-button-mobile:active {
        background: #007bff;
        color: white;
    }

    /* Shape Hero Content - Mobile */
    .hero-content-wrapper {
        padding: 0 20px;
    }

    .hero-price-highlight {
        padding: 24px;
    }

    .hero-header {
        margin-bottom: 30px;
        padding-bottom: 20px;
    }

    .hero-main-title {
        font-size: 1.5rem;
    }

    .live-indicator-wrapper {
        flex-direction: row;
        gap: 6px;
        font-size: 0.85rem;
    }

    .price-cards-wrapper {
        flex-direction: column;
        gap: 30px;
        align-items: center;
    }

    .price-value, .deal-value {
        font-size: 2.5rem;
    }

    .price-label, .deal-label {
        font-size: 0.9rem;
    }

    .deal-discount-badge {
        font-size: 0.75rem;
        padding: 3px 8px;
    }

    .btn-price-action {
        padding: 10px 24px;
        font-size: 0.95rem;
        width: 100%;
    }

    .hero-shape-details {
        padding: 24px;
    }

    .hero-shape-details h2 {
        font-size: 1.5rem;
    }

    .education-toggle {
        padding: 16px 20px;
    }

    .education-question {
        font-size: 1rem;
    }

    .education-content h3 {
        font-size: 1.4rem;
    }

    .education-intro {
        font-size: 1rem;
    }

    .education-details {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .education-item {
        padding: 16px;
    }

    .education-item h4 {
        font-size: 1rem;
    }

    .education-item p {
        font-size: 0.9rem;
    }

    .shape-description,
    .best-deal-highlight {
        font-size: 1rem;
    }

    .hero-price-trends {
        padding: 24px;
    }

    .trend-header h3 {
        font-size: 1.3rem;
    }

    .trend-summary {
        font-size: 1.05rem;
    }

    .carat-trends-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .carat-trend-card {
        padding: 20px;
    }

    .stat-value-large {
        font-size: 1.5rem;
    }

    /* Hide breadcrumb on mobile, show mobile sub-header instead */
    .breadcrumb-nav {
        display: none;
    }

    .mobile-sub-header {
        display: flex;
        top: 56px;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .hero-page-description h1 {
        font-size: 1.5rem;
    }

    .hero-subtitle {
        font-size: 0.95rem;
    }

    .hero-shape-details h2 {
        font-size: 1.3rem;
    }

    .trend-header h3 {
        font-size: 1.2rem;
    }

    .carat-trend-card {
        padding: 16px;
    }

    .stat-value-large {
        font-size: 1.3rem;
    }
}
header.headerStructure {
    position: fixed;
    z-index: 9999999;
}

/* ========================================
   PREMIUM HERO SECTION - dp-* prefix
   ======================================== */

.dp-hero-premium {
    background: linear-gradient(135deg, #ffffff 0%, #f8fafc 100%);
    border-radius: 20px;
    padding: 48px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.04);
}

/* Live Badge Row */
.dp-hero-live-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 32px;
}

.dp-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 24px;
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.dp-live-dot {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: dp-pulse 2s ease-in-out infinite;
}

@keyframes dp-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(0.9); }
}

.dp-live-time {
    color: #64748b;
    font-size: 0.9rem;
}

/* Price Section */
.dp-hero-price-section {
    display: flex;
    justify-content: center;
    align-items: stretch;
    gap: 48px;
    margin-bottom: 32px;
    flex-wrap: wrap;
}

.dp-hero-price-main,
.dp-hero-price-deal {
    text-align: center;
    padding: 32px 48px;
    border-radius: 16px;
    flex: 1;
    min-width: 280px;
    max-width: 400px;
}

.dp-hero-price-main {
    background: linear-gradient(135deg, #264265 0%, #1e3a5f 100%);
    color: white;
}

.dp-hero-price-deal {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #10b981;
}

.dp-price-eyebrow {
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    opacity: 0.8;
    margin-bottom: 8px;
    font-weight: 600;
}

.dp-price-value {
    font-size: 3.5rem;
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 8px;
    font-family: 'Nunito Sans', sans-serif;
}

.dp-price-context {
    font-size: 1rem;
    opacity: 0.85;
}

.dp-deal-badge {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 12px;
}

.dp-deal-value {
    font-size: 3rem;
    font-weight: 800;
    color: #059669;
    line-height: 1.1;
    margin-bottom: 12px;
    font-family: 'Nunito Sans', sans-serif;
}

.dp-deal-savings {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dp-savings-tag {
    background: #10b981;
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 700;
    display: inline-block;
}

.dp-savings-amount {
    color: #059669;
    font-size: 0.9rem;
    font-weight: 600;
}

/* Trust Row */
.dp-hero-trust-row {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 24px;
    margin-bottom: 32px;
    padding: 20px 0;
    border-top: 1px solid #e2e8f0;
    border-bottom: 1px solid #e2e8f0;
}

.dp-trust-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #475569;
    font-size: 0.95rem;
    font-weight: 500;
}

.dp-trust-item svg {
    flex-shrink: 0;
}

/* CTA Row */
.dp-hero-cta-row {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.dp-cta-primary,
.dp-cta-secondary {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 16px 32px;
    border-radius: 12px;
    font-size: 1.05rem;
    font-weight: 700;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
}

.dp-cta-primary {
    background: linear-gradient(135deg, #264265 0%, #1e3a5f 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(38, 66, 101, 0.3);
}

.dp-cta-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 24px rgba(38, 66, 101, 0.4);
}

.dp-cta-secondary {
    background: white;
    color: #264265;
    border: 2px solid #264265;
}

.dp-cta-secondary:hover {
    background: #264265;
    color: white;
    transform: translateY(-2px);
}

/* Stats Grid */
.dp-stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

.dp-stat-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dp-stat-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #264265;
}

.dp-stat-carat {
    font-size: 0.9rem;
    color: #64748b;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dp-stat-price {
    font-size: 1.75rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 8px;
    font-family: 'Nunito Sans', sans-serif;
}

.dp-stat-change {
    font-size: 0.9rem;
    font-weight: 700;
    padding: 4px 12px;
    border-radius: 16px;
    display: inline-block;
}

.dp-stat-change.down {
    background: #f0fdf4;
    color: #10b981;
}

.dp-stat-change.up {
    background: #fef3c7;
    color: #d97706;
}

/* Market Insight */
.dp-market-insight {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
    border-radius: 16px;
    padding: 24px;
    border-left: 4px solid #3b82f6;
    margin-bottom: 32px;
}

.dp-insight-icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}

.dp-insight-content {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #1e40af;
}

.dp-insight-content strong {
    color: #1e3a8a;
}

/* ========================================
   PREMIUM HERO - RESPONSIVE STYLES
   ======================================== */

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

@media (max-width: 768px) {
    .dp-hero-premium {
        padding: 28px 20px;
        border-radius: 16px;
    }

    .dp-hero-live-row {
        flex-direction: column;
        gap: 8px;
        margin-bottom: 24px;
    }

    .dp-hero-price-section {
        flex-direction: column;
        gap: 20px;
    }

    .dp-hero-price-main,
    .dp-hero-price-deal {
        padding: 24px;
        min-width: auto;
        max-width: none;
    }

    .dp-price-value {
        font-size: 2.5rem;
    }

    .dp-deal-value {
        font-size: 2.2rem;
    }

    .dp-hero-trust-row {
        flex-direction: column;
        gap: 12px;
        padding: 16px 0;
    }

    .dp-trust-item {
        font-size: 0.9rem;
    }

    .dp-hero-cta-row {
        flex-direction: column;
        gap: 12px;
    }

    .dp-cta-primary,
    .dp-cta-secondary {
        width: 100%;
        justify-content: center;
        padding: 14px 24px;
    }

    .dp-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dp-stat-card {
        padding: 16px;
    }

    .dp-stat-price {
        font-size: 1.4rem;
    }

    .dp-market-insight {
        flex-direction: column;
        gap: 12px;
        padding: 20px;
    }

    .dp-insight-content {
        font-size: 0.95rem;
    }
}

@media (max-width: 480px) {
    .dp-price-value {
        font-size: 2rem;
    }

    .dp-deal-value {
        font-size: 1.8rem;
    }

    .dp-stat-price {
        font-size: 1.2rem;
    }

    .dp-stat-carat {
        font-size: 0.8rem;
    }
}

/* ========================================
   BLOOMBERG-STYLE CHART
   ======================================== */

.dp-bloomberg-chart {
    background: #0f172a;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 32px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.2);
}

.dp-chart-header {
    margin-bottom: 24px;
}

.dp-chart-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 16px;
}

.dp-chart-title {
    color: #f8fafc;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0;
}

.dp-chart-period-tabs {
    display: flex;
    gap: 4px;
    background: rgba(255,255,255,0.05);
    border-radius: 8px;
    padding: 4px;
}

.dp-period-tab {
    background: transparent;
    border: none;
    color: #94a3b8;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.dp-period-tab:hover {
    color: #f8fafc;
}

.dp-period-tab.active {
    background: #264265;
    color: #f8fafc;
}

.dp-chart-stats {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.dp-chart-stat {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.dp-chart-stat-label {
    color: #64748b;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dp-chart-stat-value {
    color: #f8fafc;
    font-size: 1.1rem;
    font-weight: 700;
}

.dp-chart-stat.down .dp-chart-stat-value {
    color: #10b981;
}

.dp-chart-stat.up .dp-chart-stat-value {
    color: #ef4444;
}

.dp-chart-container {
    height: 300px;
    margin-bottom: 16px;
}

.dp-chart-footer {
    text-align: center;
    padding-top: 16px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.dp-chart-source {
    color: #64748b;
    font-size: 0.8rem;
}

/* ========================================
   RESULTS SECTIONS (DIAMONDS & JEWELRY)
   ======================================== */

.dp-results-section {
    background: white;
    border-radius: 20px;
    padding: 32px;
    margin-bottom: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.dp-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    flex-wrap: wrap;
    gap: 12px;
}

.dp-results-title {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1e293b;
    margin: 0;
}

.dp-results-title svg {
    color: #264265;
}

.dp-results-view-all {
    color: #264265;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: all 0.2s ease;
}

.dp-results-view-all:hover {
    color: #10b981;
}

.dp-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.dp-loading-skeleton {
    display: contents;
}

.dp-skeleton-card {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 50%, #f1f5f9 75%);
    background-size: 200% 100%;
    animation: dp-shimmer 1.5s infinite;
    border-radius: 12px;
    height: 280px;
}

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

/* Diamond Cards */
.dp-diamond-card {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.dp-diamond-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #264265;
}

.dp-diamond-img {
    aspect-ratio: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.dp-diamond-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

.dp-diamond-info {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
}

.dp-diamond-specs {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.dp-diamond-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #1e293b;
    margin-bottom: 4px;
}

.dp-diamond-vendor {
    font-size: 0.8rem;
    color: #94a3b8;
}

/* Jewelry Cards */
.dp-jewelry-card {
    background: #f8fafc;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}

.dp-jewelry-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
    border-color: #264265;
}

.dp-jewelry-img {
    aspect-ratio: 1;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.dp-jewelry-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dp-jewelry-info {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
}

.dp-jewelry-category {
    font-size: 0.75rem;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 6px;
}

.dp-jewelry-title {
    font-size: 0.95rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 6px;
    line-height: 1.3;
}

.dp-jewelry-specs {
    font-size: 0.8rem;
    color: #64748b;
    margin-bottom: 8px;
}

.dp-jewelry-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: #264265;
}

.dp-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px 20px;
    color: #64748b;
}

.dp-no-results a {
    color: #264265;
    font-weight: 600;
}

/* Results Sections Responsive */
@media (max-width: 1024px) {
    .dp-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dp-bloomberg-chart {
        padding: 20px;
        border-radius: 16px;
    }

    .dp-chart-title-row {
        flex-direction: column;
        align-items: flex-start;
    }

    .dp-chart-stats {
        gap: 16px;
    }

    .dp-chart-container {
        height: 220px;
    }

    .dp-results-section {
        padding: 20px;
        border-radius: 16px;
    }

    .dp-results-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .dp-diamond-info,
    .dp-jewelry-info {
        padding: 12px;
    }

    .dp-diamond-price {
        font-size: 1.1rem;
    }
}

@media (max-width: 480px) {
    .dp-chart-stats {
        flex-direction: column;
        gap: 12px;
    }

    .dp-results-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .dp-diamond-specs {
        font-size: 0.75rem;
    }

    .dp-jewelry-title {
        font-size: 0.85rem;
    }
}

/* ========================================
   DIAMOND PRICES V2 - NEW LAYOUT
   ======================================== */

/* Override mainStructure padding for V2 pages */
.mainStructure .dp-v2-wrapper {
    padding-left: 0;
    padding-right: 0;
    padding-top: 64px;
}
.mainStructure .dp-v2-wrapper .dp-v2-hero{padding-left: 0;padding-right: 0;padding-top: 4px;padding-bottom: 9px;}

.dp-v2-wrapper {
    background: #f8fafc;
    min-height: 100vh;
}

/* Breadcrumb */
.dp-v2-breadcrumb {
    background: white;
    padding: 10px 0;
    /* border-bottom: 1px solid #e2e8f0; */
    background: linear-gradient(180deg, #ffffffa3, 4%, #f9fafc 100%);
    backdrop-filter: blur(6px);
}

.dp-v2-container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

.dp-v2-breadcrumb a {
    color: #64748b;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.dp-v2-breadcrumb a:hover {
    color: #264265;
}

.dp-v2-sep {
    color: #cbd5e1;
    margin: 0 8px;
}

.dp-v2-current {
    color: #264265;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Hero Section */
.dp-v2-hero {
    background: linear-gradient(180deg, white 0%, #f1f5f9 100%);
    padding: 48px 0 40px;
}

.dp-v2-hero-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 32px;
    margin-bottom: 32px;
}

.dp-v2-hero-main {
    flex: 1;
}

.dp-v2-live-row {
    display: flex;
    align-items: center;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 16px;
}

.dp-v2-live-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.03em;
}

.dp-v2-live-dot {
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
    animation: dp-v2-pulse 2s ease-in-out infinite;
}

/* Natural / Lab-Grown Toggle */
.dp-v2-type-toggle {
    display: flex;
    background: #e2e8f0;
    border-radius: 8px;
    padding: 3px;
}

.dp-v2-type-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    font-size: 0.85rem;
    font-weight: 600;
    color: #64748b;
    text-decoration: none;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.dp-v2-type-btn:hover {
    color: #264265;
}

.dp-v2-type-btn.active {
    background: white;
    color: #264265;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.dp-v2-type-btn svg {
    opacity: 0.7;
}

.dp-v2-type-btn.active svg {
    opacity: 1;
}

@keyframes dp-v2-pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* Shape & Carat Selectors */
.dp-v2-selector {
    position: relative;
    display: flex;
    flex-direction: row;
    gap: 4px;
    position: relative;
    top: 0px;
    align-items: center;
    gap: 10px;
}

.dp-v2-selector-label {
    font-size: 0.7rem;
    font-weight: 600;
    color: #64748b;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: none;
}

.dp-v2-select {
    appearance: none;
    -webkit-appearance: none;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    padding: 8px 32px 8px 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #264265;
    cursor: pointer;
    transition: all 0.2s ease;
    min-width: 110px;
}

.dp-v2-select:hover {
    border-color: #264265;
}

.dp-v2-select:focus {
    outline: none;
    border-color: #264265;
    box-shadow: 0 0 0 3px rgba(38, 66, 101, 0.1);
}

.dp-v2-select-arrow {
    position: absolute;
    right: 10px;
    bottom: 12px;
    pointer-events: none;
    color: #64748b;
}

.dp-v2-title {
    font-size: 2.2rem;
    font-weight: 800;
    color: #264265;
    margin: 0 0 16px;
    line-height: 1.2;
    font-family: 'Nunito Sans', sans-serif;
}

.dp-v2-summary {
    font-size: 1.1rem;
    line-height: 1.7;
    color: #475569;
    max-width: 700px;
}

.dp-v2-summary strong {
    color: #0f172a;
    font-weight: 700;
}

.dp-v2-loading-text {
    color: #94a3b8;
    font-style: italic;
}

/* Track Prices CTA */
.dp-v2-hero-cta {
    flex-shrink: 0;
}

.dp-v2-track-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: white;
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-size: 12ox;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    /* box-shadow: 0 4px 12px rgba(38, 66, 101, 0.3); */
    padding: 8px 16px;
    font-size: 0.85rem;
    /* font-weight: 600; */
    color: #264265;
    border: 1px solid #26426514;
}

.dp-v2-track-btn:hover {
    transform: translateY(-2px);
    /* box-shadow: 0 6px 20px rgba(38, 66, 101, 0.4); */
}

/* Shape Selector */
.dp-v2-shape-selector {
    margin-top: 8px;
}

.dp-v2-shape-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dp-v2-shapes-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.dp-v2-shape-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: white;
    border: 2px solid #e2e8f0;
    padding: 9px 10px;
    border-radius: 30px;
    text-decoration: none;
    color: #475569;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.2s ease;
}

.dp-v2-shape-pill:hover {
    border-color: #264265;
    color: #264265;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dp-v2-shape-pill.active {
    background: linear-gradient(135deg, #264265 0%, #1e3a5f 100%);
    border-color: #264265;
    color: white;
    box-shadow: 0 4px 12px rgba(38, 66, 101, 0.3);
}

.dp-v2-shape-icon {
    width: 37px;
    height: 25px;
    object-fit: contain;
}

/* Chart + Compare Section */
.dp-v2-chart-section {
    /* background: #0f172a; */
    padding: 8px 0px 24px 0px;
}

.dp-v2-chart-grid {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 32px;
}

.dp-v2-chart-main {
    background: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.dp-v2-chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dp-v2-chart-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
}

.dp-v2-period-tabs {
    display: flex;
    gap: 4px;
    background: #f1f5f9;
    padding: 4px;
    border-radius: 8px;
}

.dp-v2-period {
    background: transparent;
    border: none;
    color: #64748b;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.dp-v2-period:hover {
    color: #264265;
}

.dp-v2-period.active {
    background: #264265;
    color: white;
}

.dp-v2-chart-canvas-wrap {
    position: relative;
    min-height: 350px;
}

/* Compare Sidebar */
.dp-v2-compare-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dp-v2-compare-indices {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.dp-v2-compare-loading {
    color: #64748b;
    font-style: italic;
    padding: 24px;
    text-align: center;
}

.dp-v2-compare-card {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 12px rgba(0,0,0,0.04);
    box-sizing: border-box;
}

.dp-v2-compare-card-title {
    font-size: 0.9rem;
    font-weight: 700;
    color: #264265;
    margin: 0 0 16px;
}

.dp-v2-compare-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid #e2e8f0;
}

.dp-v2-compare-item:last-child {
    border-bottom: none;
}

.dp-v2-compare-name {
    color: #64748b;
    font-size: 0.9rem;
}

.dp-v2-compare-price {
    color: #264265;
    font-weight: 700;
    font-size: 0.9rem;
}

.dp-v2-compare-change {
    font-size: 0.8rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

.dp-v2-compare-change.positive {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.dp-v2-compare-change.negative {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

/* Trust Stats Section - Premium Enhanced UI */
.dp-v2-trust-section {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 50%, #0f172a 100%);
    padding: 72px 0;
    position: relative;
    overflow: hidden;
    display: none;
}

/* Subtle pattern overlay */
.dp-v2-trust-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 20% 50%, rgba(59, 130, 246, 0.08) 0%, transparent 50%),
                radial-gradient(circle at 80% 50%, rgba(139, 92, 246, 0.08) 0%, transparent 50%);
    pointer-events: none;
}

/* Animated glow line at top */
.dp-v2-trust-section::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: linear-gradient(90deg, transparent, #3b82f6, #8b5cf6, #3b82f6, transparent);
    background-size: 200% 100%;
    animation: dp-trust-glow 3s ease-in-out infinite;
}

@keyframes dp-trust-glow {
    0%, 100% { background-position: 200% 0; }
    50% { background-position: 0% 0; }
}

.dp-v2-trust-content {
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.dp-v2-trust-tagline {
    font-size: 2rem;
    color: #ffffff;
    margin: 0 0 12px;
    font-weight: 800;
    font-family: 'Nunito Sans', sans-serif;
    letter-spacing: -0.02em;
}

.dp-v2-trust-tagline strong {
    background: linear-gradient(135deg, #60a5fa 0%, #a78bfa 50%, #60a5fa 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    background-size: 200% 100%;
    animation: dp-trust-gradient 4s ease-in-out infinite;
}

@keyframes dp-trust-gradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.dp-v2-trust-sub {
    font-size: 1.1rem;
    color: #94a3b8;
    margin: 0 0 48px;
    line-height: 1.6;
}

.dp-v2-trust-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

.dp-v2-stat {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: linear-gradient(145deg, rgba(255,255,255,0.1) 0%, rgba(255,255,255,0.05) 100%);
    padding: 32px 40px;
    border-radius: 20px;
    border: 1px solid rgba(255,255,255,0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    min-width: 200px;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

/* Hover glow effect */
.dp-v2-stat::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.15) 0%, rgba(139, 92, 246, 0.15) 100%);
    opacity: 0;
    transition: opacity 0.4s ease;
    border-radius: 20px;
}

.dp-v2-stat:hover {
    transform: translateY(-6px) scale(1.02);
    border-color: rgba(139, 92, 246, 0.4);
    box-shadow: 0 20px 40px -12px rgba(139, 92, 246, 0.25),
                0 0 0 1px rgba(139, 92, 246, 0.2);
}

.dp-v2-stat:hover::before {
    opacity: 1;
}

.dp-v2-stat-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    position: relative;
    z-index: 1;
    box-shadow: 0 8px 20px -4px rgba(59, 130, 246, 0.4);
    transition: all 0.4s ease;
}

.dp-v2-stat:hover .dp-v2-stat-icon {
    transform: scale(1.1);
    box-shadow: 0 12px 28px -4px rgba(139, 92, 246, 0.5);
}

.dp-v2-stat-icon svg {
    width: 28px;
    height: 28px;
    color: white;
}

.dp-v2-stat-value {
    font-size: 2.25rem;
    font-weight: 800;
    color: #ffffff;
    font-family: 'Nunito Sans', sans-serif;
    line-height: 1.2;
    position: relative;
    z-index: 1;
}

.dp-v2-stat-label {
    font-size: 0.9rem;
    color: #94a3b8;
    margin-top: 6px;
    font-weight: 500;
    position: relative;
    z-index: 1;
    letter-spacing: 0.025em;
}

/* Price Table Section */
.dp-v2-table-section {
    background: white;
    padding: 64px 0;
}

.dp-v2-table-header {
    margin-bottom: 32px;
}

.dp-v2-table-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #264265;
    margin: 0 0 12px;
    font-family: 'Nunito Sans', sans-serif;
}

.dp-v2-table-sub {
    font-size: 1rem;
    color: #64748b;
    margin: 0;
    max-width: 800px;
    line-height: 1.6;
}

.dp-v2-table-wrap {
    overflow-x: auto;
}

.dp-v2-price-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 12px;
    overflow: hidden;
    /* box-shadow: 0 4px 20px rgba(0,0,0,0.06); */
}

.dp-v2-price-table thead {
    background: #f8fafc;
}

.dp-v2-price-table th {
    padding: 16px 20px;
    text-align: left;
    font-size: 0.85rem;
    font-weight: 700;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border-bottom: 2px solid #e2e8f0;
}

.dp-v2-price-table td {
    padding: 16px 20px;
    border-bottom: 1px solid #f1f5f9;
    vertical-align: middle;
}

.dp-v2-price-table tbody tr {
    transition: background 0.2s;
}

.dp-v2-price-table tbody tr:hover {
    background: #f8fafc;
}

.dp-v2-table-shape {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-v2-table-shape-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
}

.dp-v2-table-shape-name {
    font-weight: 700;
    color: #0f172a;
}

.dp-v2-table-shape-link {
    font-size: 0.85rem;
    color: #264265;
    text-decoration: none;
}

.dp-v2-table-shape-link:hover {
    text-decoration: underline;
}

.dp-v2-table-chart {
    width: 100px;
    height: 40px;
}

.dp-v2-table-price {
    /* font-size: 1.1rem; */
    font-weight: 400;
    color: #0f172a;
    font-family: 'Nunito Sans', sans-serif;
}

.dp-v2-table-change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.dp-v2-table-change.positive {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.dp-v2-table-change.negative {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

.dp-v2-loading-cell {
    text-align: center;
    color: #64748b;
    font-style: italic;
    padding: 40px 20px !important;
}

/* SEO Content Section */
.dp-v2-seo-section {
    background: #f8fafc;
    padding: 64px 0;
}

.dp-v2-seo-content {
    max-width: 900px;
}

.dp-v2-seo-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0 0 24px;
    font-family: 'Nunito Sans', sans-serif;
}

.dp-v2-seo-text {
    font-size: 1rem;
    line-height: 1.8;
    color: #475569;
}

.dp-v2-seo-text p {
    margin: 0 0 20px;
}

.dp-v2-seo-text h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #264265;
    margin: 32px 0 16px;
}

.dp-v2-seo-text ul {
    margin: 0 0 20px;
    padding-left: 24px;
}

.dp-v2-seo-text li {
    /* margin-bottom: 12px; */
}

.dp-v2-seo-text strong {
    color: #264265;
}

/* Results Section */
.dp-v2-results-section {
    background: white;
    padding: 64px 0;
}

.dp-v2-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dp-v2-jewelry-header {
    margin-top: 48px;
}

.dp-v2-results-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
}

.dp-v2-view-all {
    color: #264265;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.2s;
}

.dp-v2-view-all:hover {
    color: #10b981;
}

.dp-v2-results-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}

.dp-v2-skeleton {
    background: #f1f5f9;
    border-radius: 12px;
    height: 320px;
    animation: dp-v2-shimmer 1.5s ease-in-out infinite;
}

@keyframes dp-v2-shimmer {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.5; }
}

/* V2 Diamond Cards */
.dp-v2-diamond-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
    display: flex;
    flex-direction: column;
}

.dp-v2-diamond-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(38, 66, 101, 0.15);
    border-color: #264265;
}

.dp-v2-diamond-img {
    aspect-ratio: 1;
    background: #bdbdbd;
    display: flex;
    align-items: center;
    justify-content: center;
    /* padding: 20px; */
    /* height: 275px; */
    aspect-ratio: 275/212;
}

.dp-v2-diamond-img img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.dp-v2-diamond-card:hover .dp-v2-diamond-img img {
    transform: scale(1.05);
}

.dp-v2-diamond-info {
    padding: 16px;
    border-top: 1px solid #e2e8f0;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.dp-v2-diamond-shape {
    font-size: 0.9rem;
    font-weight: 700;
    color: #264265;
    margin-bottom: 6px;
}

.dp-v2-diamond-specs {
    font-size: 0.85rem;
    color: #64748b;
    font-weight: 500;
    margin-bottom: 10px;
}

.dp-v2-diamond-price {
    font-size: 1.25rem;
    font-weight: 800;
    color: #0f172a;
    font-family: 'Nunito Sans', sans-serif;
    margin-top: auto;
}

.dp-v2-diamond-vendor {
    display: none;
}

.dp-v2-no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 48px 24px;
    background: #f8fafc;
    border-radius: 12px;
    color: #64748b;
    font-size: 1rem;
}

.dp-v2-no-results a {
    color: #264265;
    font-weight: 600;
    text-decoration: none;
}

.dp-v2-no-results a:hover {
    color: #10b981;
}

/* V2 Mobile Responsive */
@media (max-width: 1024px) {
    .dp-v2-chart-grid {
        grid-template-columns: 1fr;
    }

    .dp-v2-compare-sidebar {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .dp-v2-compare-card {
        flex: 1;
        min-width: 280px;
    }

    .dp-v2-results-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    
     .mainStructure .dp-v2-wrapper{
    padding-left: 0px;
    padding-right: 0px;
    padding-top: 56px;
    padding-bottom: 0px;
}
    .tdp-route__grid{
        position:relative;
        left:15px;
    }
     .mainStructure .dp-v2-wrapper .tdp-route {
    padding-left: 15px;
    padding-right: 15px;
    padding-top: 24px;
    padding-bottom: 19px;
    margin-top: 20px;
    overflow: hidden;

}
    .tdp-route__trust{
        display:none;
    }
    .mainStructure .dp-v2-wrapper .dp-v2-hero{
        padding-top: 12px;
        padding-bottom: 0px;
    }
    .dp-v2-container {
        padding: 0 16px;
    }

    .dp-v2-hero {
        padding: 32px 0;
    }

    .dp-v2-hero-content {
        flex-direction: column;
        gap: 24px;
    }

    .dp-v2-live-row {
        flex-wrap: wrap;
        gap: 12px;
        position: relative;
        /* flex-direction: row-reverse; */
        justify-content: space-between;
    }

    .dp-v2-type-toggle {
        /* width: 100%; */
    }

    .dp-v2-selector {
        flex: 1;
        min-width: 80px;
        top: 0px;
    }

    .dp-v2-select {
        width: 100%;
        min-width: auto;
        padding: 8px 28px 8px 10px;
        font-size: 0.85rem;
    }

    .dp-v2-title {
        font-size: 1.75rem;
    }

    .dp-v2-summary {
        font-size: 1rem;
    }

    .dp-v2-shapes-row {
        gap: 8px;
    }

    .dp-v2-shape-pill {
        padding: 8px 12px;
        font-size: 0.85rem;
    }

    .dp-v2-shape-pill span {
        display: none;
    }

    .dp-v2-shape-pill.active span {
        display: inline;
    }

    .dp-v2-chart-section {
        padding: 32px 0;
    }

    .dp-v2-chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .dp-v2-chart-title {
        font-size: 1.1rem;
    }

    .dp-v2-period {
        padding: 6px 12px;
        font-size: 0.8rem;
    }

    .dp-v2-trust-section {
        padding: 56px 0;
    }

    .dp-v2-trust-tagline {
        font-size: 1.6rem;
    }

    .dp-v2-trust-sub {
        margin-bottom: 36px;
    }

    .dp-v2-trust-stats {
        gap: 16px;
    }

    .dp-v2-stat {
        padding: 28px 32px;
        min-width: 160px;
        flex: 1;
        border-radius: 16px;
    }

    .dp-v2-stat-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 16px;
        border-radius: 14px;
    }

    .dp-v2-stat-icon svg {
        width: 24px;
        height: 24px;
    }

    .dp-v2-stat-value {
        font-size: 1.9rem;
    }

    .dp-v2-table-section,
    .dp-v2-seo-section,
    .dp-v2-results-section {
        padding: 48px 0;
    }

    .dp-v2-table-title,
    .dp-v2-seo-title,
    .dp-v2-results-title {
        font-size: 1.35rem;
    }

    .dp-v2-compare-sidebar {
        flex-direction: column;
    }

    .dp-v2-compare-card {
        min-width: 100%;
    }
}

@media (max-width: 480px) {
    .dp-v2-title {
        font-size: 1.5rem;
    }

    .dp-v2-track-btn {
        width: 100%;
        justify-content: center;
        display: none;
    }

    .dp-v2-trust-section {
        padding: 48px 0;
    }

    .dp-v2-trust-tagline {
        font-size: 1.35rem;
        line-height: 1.3;
    }

    .dp-v2-trust-sub {
        font-size: 1rem;
        margin-bottom: 32px;
    }

    .dp-v2-trust-stats {
        flex-direction: column;
        gap: 16px;
        padding: 0 16px;
    }

    .dp-v2-stat {
        flex: 1 1 100%;
        min-width: 100%;
        padding: 24px 28px;
        flex-direction: row;
        justify-content: flex-start;
        gap: 20px;
        text-align: left;
    }

    .dp-v2-stat-icon {
        margin-bottom: 0;
        flex-shrink: 0;
    }

    .dp-v2-stat > .dp-v2-stat-value,
    .dp-v2-stat > .dp-v2-stat-label {
        text-align: left;
    }

    .dp-v2-results-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .dp-v2-results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

/* V2 Compare Item Links */
a.dp-v2-compare-item {
    text-decoration: none;
    cursor: pointer;
    transition: background 0.2s;
    margin: 0 -12px;
    padding: 10px 12px;
    border-radius: 8px;
}

a.dp-v2-compare-item:hover {
    background: rgba(255, 255, 255, 0.05);
}

/* V2 Table Row Links */
.dp-v2-price-table tbody tr {
    cursor: pointer;
}

/* V2 Hero Price Cards */
.dp-v2-hero-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 32px;
}

.dp-v2-hero-left {
    flex: 1;
}

.dp-v2-price-cards {
    display: flex;
    gap: 24px;
    margin-bottom: 0;
}

.dp-v2-price-card {
    background: white;
    border-radius: 16px;
    padding: 24px 32px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    min-width: 200px;
}

.dp-v2-index-card {
    border: 2px solid #e2e8f0;
}

.dp-v2-deal-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    border: none;
}

.dp-v2-deal-card .dp-v2-price-card-label,
.dp-v2-deal-card .dp-v2-price-card-value,
.dp-v2-deal-card .dp-v2-price-card-link {
    color: white;
}

.dp-v2-price-card-label {
    font-size: 0.9rem;
    color: #264265;
    margin-bottom: 8px;
    font-weight: 600;
}

.dp-v2-price-card-value {
    font-size: 2rem;
    font-weight: 800;
    color: #264265;
    font-family: 'Nunito Sans', sans-serif;
    line-height: 1.2;
}

.dp-v2-deal-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-v2-deal-badge {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.85rem;
    font-weight: 700;
}

.dp-v2-price-card-link {
    display: inline-block;
    margin-top: 12px;
    font-size: 0.9rem;
    font-weight: 600;
    color: #264265;
    text-decoration: none;
    transition: color 0.2s;
}

.dp-v2-price-card-link:hover {
    color: #10b981;
}

.dp-v2-deal-link:hover {
    color: rgba(255,255,255,0.8);
}

/* V2 Loading Shimmer for Price Cards */
.dp-v2-loading-shimmer {
    position: relative;
    overflow: hidden;
}

.dp-v2-price-skeleton,
.dp-v2-percent-skeleton {
    display: inline-block;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: dp-v2-shimmer-anim 1.5s ease-in-out infinite;
    border-radius: 4px;
}

.dp-v2-price-skeleton {
    width: 100px;
    height: 32px;
}

.dp-v2-percent-skeleton {
    width: 50px;
    height: 24px;
}

.dp-v2-deal-card .dp-v2-price-skeleton,
.dp-v2-deal-card .dp-v2-percent-skeleton {
    background: linear-gradient(90deg, rgba(255,255,255,0.2) 25%, rgba(255,255,255,0.35) 50%, rgba(255,255,255,0.2) 75%);
    background-size: 200% 100%;
}

@keyframes dp-v2-shimmer-anim {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* V2 Inline Results in Chart Section */
.dp-v2-inline-results {
    margin-top: 48px;
    padding-top: 48px;
    border-top: 1px solid #e2e8f0;
}

.dp-v2-inline-results .dp-v2-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.dp-v2-inline-results .dp-v2-jewelry-header {
    margin-top: 48px;
}

.dp-v2-inline-results .dp-v2-results-title {
    font-size: 1.35rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.dp-v2-inline-results .dp-v2-view-all {
    color: #64748b;
    font-weight: 600;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.2s;
}

.dp-v2-inline-results .dp-v2-view-all:hover {
    color: #264265;
}

/* V2 Chart Header with Price */
.dp-v2-chart-header-left {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.dp-v2-chart-current-price {
    display: flex;
    align-items: center;
    gap: 12px;
}

.dp-v2-chart-price-label {
    color: #64748b;
    font-size: 0.9rem;
}

.dp-v2-chart-price-value {
    color: #0f172a;
    font-size: 1.5rem;
    font-weight: 700;
    font-family: 'Nunito Sans', sans-serif;
}

.dp-v2-chart-price-change {
    font-size: 0.9rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
}

.dp-v2-chart-price-change.positive {
    background: rgba(239, 68, 68, 0.1);
    color: #dc2626;
}

.dp-v2-chart-price-change.negative {
    background: rgba(16, 185, 129, 0.1);
    color: #059669;
}

/* V2 Below Chart Section */
.dp-v2-below-chart {
    margin-top: 40px;
    padding-top: 32px;
    border-top: 1px solid #e1e7ef;
}

.dp-v2-shop-links {
    display: flex;
    gap: 16px;
    margin-top: 24px;
}

.dp-v2-shop-link {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 24px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
}

.dp-v2-shop-diamonds {
    background: white;
    color: #0f172a;
}

.dp-v2-shop-diamonds:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255,255,255,0.2);
}

.dp-v2-shop-jewelry {
    background: transparent;
    color: white;
    border: 2px solid rgba(255,255,255,0.3);
}

.dp-v2-shop-jewelry:hover {
    background: rgba(255,255,255,0.1);
    border-color: rgba(255,255,255,0.5);
}

/* V2 FAQ Section */
.dp-v2-faq-section {
    background: #f8fafc;
    padding: 64px 0;
}

.dp-v2-faq-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #264265;
    margin: 0 0 32px;
    font-family: 'Nunito Sans', sans-serif;
}

.dp-v2-faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-width: 800px;
}

.dp-v2-faq-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
}

.dp-v2-faq-question {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px;
    background: none;
    border: none;
    cursor: pointer;
    font-size: 1rem;
    font-weight: 600;
    color: #274265;
    text-align: left;
    transition: background 0.2s;
}

.dp-v2-faq-question:hover {
    background: #f8fafc;
}

.dp-v2-faq-question svg {
    flex-shrink: 0;
    color: #64748b;
    transition: transform 0.3s;
}

.dp-v2-faq-item.open .dp-v2-faq-question svg {
    transform: rotate(180deg);
}

.dp-v2-faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.dp-v2-faq-item.open .dp-v2-faq-answer {
    max-height: 300px;
}

.dp-v2-faq-answer p {
    padding: 0 24px 20px;
    margin: 0;
    color: #475569;
    line-height: 1.7;
}

/* V2 Blog Section */
.dp-v2-blog-section {
    background: white;
    padding: 64px 0;
}

.dp-v2-blog-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
}

.dp-v2-blog-title {
    font-size: 1.75rem;
    font-weight: 800;
    color: #0f172a;
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
}

.dp-v2-blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

.dp-v2-blog-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    box-shadow: 0 4px 16px rgba(0,0,0,0.06);
    transition: all 0.3s;
}

.dp-v2-blog-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.dp-v2-blog-img {
    height: 160px;
    background: linear-gradient(135deg, #264265, #1e3a5f);
    overflow: hidden;
}

.dp-v2-blog-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dp-v2-blog-content {
    padding: 20px;
}

.dp-v2-blog-category {
    display: inline-block;
    font-size: 0.75rem;
    font-weight: 700;
    color: #264265;
    background: #e2e8f0;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.dp-v2-blog-card-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
    line-height: 1.4;
}

.dp-v2-blog-excerpt {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
    line-height: 1.6;
}

/* V2 Mobile Responsive - Additional */
@media (max-width: 1024px) {
    .dp-v2-blog-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .dp-v2-hero-top {
        flex-direction: column;
        /* gap: 20px; */
        margin-bottom: 0px;
    }

    .dp-v2-price-cards {
        flex-direction: column;
        gap: 16px;
    }

    .dp-v2-hero .dp-v2-price-card {
        padding: 15px 20px;
        box-sizing: border-box;
        min-width: unset;
    }
    .dp-v2-hero .dp-market-summary--inline .dp-market-summary__body{
        padding-right: 0px;
    }

    .dp-v2-price-card-value {
        font-size: 1.75rem;
    }

    .dp-v2-chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .dp-v2-chart-current-price {
        flex-wrap: wrap;
        gap: 8px;
    }

    .dp-v2-chart-price-value {
        font-size: 1.25rem;
    }

    .dp-v2-shop-links {
        flex-direction: column;
    }

    .dp-v2-shop-link {
        width: 100%;
        justify-content: center;
    }

    .dp-v2-faq-question {
        padding: 16px 20px;
        font-size: 0.95rem;
    }

    .dp-v2-faq-answer p {
        padding: 0 20px 16px;
    }

    .dp-v2-blog-grid {
        grid-template-columns: 1fr;
    }

    .dp-v2-blog-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}

/* V2 Index Page Styles */
.dp-v2-hero-sub {
    color: #64748b;
    font-size: 1.1rem;
    margin: 8px 0 0;
}

.dp-v2-grid-section {
    padding: 48px 0;
    background: white;
}

.dp-v2-section-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #264265;
    margin: 9px 0 24px;
    font-family: 'Nunito Sans', sans-serif;
}

/* Type Grid (Natural/Lab-Grown) */
.dp-v2-type-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
    margin-bottom: 48px;
}

.dp-v2-type-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 16px;
    padding: 32px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dp-v2-type-card:hover {
    border-color: #264265;
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.dp-v2-type-icon {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.dp-v2-type-card h3 {
    font-size: 1.25rem;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 8px;
}

.dp-v2-type-card p {
    color: #64748b;
    margin: 0 0 16px;
    font-size: 0.95rem;
}

.dp-v2-type-cta {
    color: #264265;
    font-weight: 600;
    font-size: 0.9rem;
}

.dp-v2-natural-card:hover { border-color: #10b981; }
.dp-v2-lab-card:hover { border-color: #8b5cf6; }

/* Shape Grid */
.dp-v2-shape-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.dp-v2-shape-card {
    background: white;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.dp-v2-shape-card:hover {
    border-color: #264265;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.dp-v2-shape-card-img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 12px;
}

.dp-v2-shape-card-name {
    display: block;
    color: #0f172a;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Carat Weight Grid */
.dp-v2-carat-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}

.dp-v2-carat-card {
    background: white;
    border-radius: 12px;
    padding: 24px 16px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid #e1e7ef;
}

.dp-v2-carat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(38,66,101,0.3);
}

.dp-v2-carat-value {
    display: block;
    color: #264165;
    font-size: 1.5rem;
    font-weight: 800;
    font-family: 'Nunito Sans', sans-serif;
    margin-bottom: 4px;
}

.dp-v2-carat-label {
    display: block;
    color: #264165;
    font-size: 0.8rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Index Page Responsive */
@media (max-width: 1024px) {
    .dp-v2-shape-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .dp-v2-carat-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .dp-v2-type-grid {
        grid-template-columns: 1fr;
    }
    .dp-v2-shape-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .dp-v2-carat-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    .dp-v2-type-card {
        padding: 24px;
    }
}

@media (max-width: 480px) {
    .dp-v2-shape-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .dp-v2-carat-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.dp-v2-chart-canvas-wrap canvas {
    max-width: 100%;
    max-height: 100%;
}

/* ============================================================
   Phase 1 narrative pack - Market Summary card + AI Analysis
   ============================================================ */

/* Shared shimmer used by both modules' loading state */
.dp-shimmer {
    display: block;
    height: 12px;
    margin: 6px 0;
    border-radius: 4px;
    background: linear-gradient(90deg, #ececec 0%, #f6f6f6 50%, #ececec 100%);
    background-size: 200% 100%;
    animation: dp-shimmer-pulse 1.4s ease-in-out infinite;
}
.dp-shimmer--line { width: 100%; }
.dp-shimmer--short { width: 60%; }
@keyframes dp-shimmer-pulse {
    0%   { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

/* ---------- Market Summary (inside hero) ---------- */
.dp-market-summary {
    margin-top: 24px;
    padding: 20px 22px;
    background: #fff;
    border: 1px solid #e6e8eb;
    border-radius: 12px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
.dp-market-summary__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}
.dp-market-summary__title {
    font-size: 14px;
    font-weight: 600;
    color: #6b7280;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0;
}
.dp-market-summary__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: capitalize;
    border-radius: 999px;
    background: #f3f4f6;
    color: #374151;
    border: 1px solid #e5e7eb;
    white-space: nowrap;
}
.dp-market-summary__badge-dot {
    display: inline-block;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #9ca3af;
}
.dp-market-summary__badge--loading .dp-market-summary__badge-dot { animation: dp-shimmer-pulse 1.2s infinite; }
.dp-market-summary__badge--positive { background: #ecfdf5; color: #047857; border-color: #a7f3d0; }
.dp-market-summary__badge--positive .dp-market-summary__badge-dot { background: #10b981; }
.dp-market-summary__badge--caution  { background: #fef3c7; color: #92400e; border-color: #fde68a; }
.dp-market-summary__badge--caution  .dp-market-summary__badge-dot { background: #f59e0b; }
.dp-market-summary__badge--neutral  { background: #eff6ff; color: #1e40af; border-color: #bfdbfe; }
.dp-market-summary__badge--neutral  .dp-market-summary__badge-dot { background: #3b82f6; }

.dp-market-summary__body {
    font-size: 15px;
    line-height: 1.55;
    color: #1f2937;
    margin: 0;
}
.dp-market-summary__reason {
    margin: 8px 0 0;
    font-size: 13px;
    color: #6b7280;
    font-style: italic;
}
.dp-market-summary__error { color: #b91c1c; font-size: 14px; }

/* ---------- AI Market Analysis (below hero) ---------- */
.dp-ai-analysis {
    background: #264265;
    color: #e2e8f0;
    padding: 56px 0;
}
.dp-ai-analysis__inner {
    max-width: 920px;
    margin: 0 auto;
    padding: 0 20px;
}
.dp-ai-analysis__header { margin-bottom: 20px; }
.dp-ai-analysis__eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 8px;
}
.dp-ai-analysis__title {
    font-size: 28px;
    line-height: 1.2;
    font-weight: 700;
    color: #f8fafc;
    margin: 0 0 6px;
}
.dp-ai-analysis__subtitle {
    font-size: 13px;
    color: #94a3b8;
    margin: 0;
}
.dp-ai-analysis__body {
    font-size: 17px;
    line-height: 1.7;
    color: #cbd5e1;
    margin: 0 0 24px;
}
.dp-ai-analysis__body .dp-shimmer {
    background: linear-gradient(90deg, #1e293b 0%, #334155 50%, #1e293b 100%);
    background-size: 200% 100%;
}
.dp-ai-analysis__footer {
    padding-top: 18px;
    border-top: 1px solid #ffffff33;
}
.dp-ai-analysis__methodology {
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.6;
}
.dp-ai-analysis__methodology strong { color: #e2e8f0; font-weight: 600; }
.dp-ai-analysis__error { color: #fca5a5; font-size: 14px; }

@media (max-width: 640px) {
    .dp-ai-analysis { padding: 36px 0; }
    .dp-ai-analysis__title { font-size: 22px; }
    .dp-ai-analysis__body { font-size: 16px; }
    .dp-market-summary { padding: 16px; }
    .dp-market-summary__header { flex-direction: column; align-items: flex-start; }
}
/* ============================================================
   Mobile hard-fix pass - 2026-07-13 (trust incident follow-up)
   Targets: 320 / 375 / 390 / 430px. Rules: no horizontal scroll,
   no oversized empty boxes, natural card widths, readable chart,
   44px touch targets, compact intentional spacing.
   ============================================================ */
@media (max-width: 480px) {
    .dp-v2-live-controls{
    }
  /* -- global guards ------------------------------------------------ */
  .dp-v2-wrapper { overflow-x: hidden; }
  .dp-v2-wrapper img { max-width: 100%; height: auto; }
  .dp-v2-container {padding-left: 14px;padding-right: 14px;}
  .dp-v2-wrapper section { padding-top: 24px; padding-bottom: 24px; }

  /* -- hero: selectors + title + CTAs ------------------------------- */
  .dp-v2-hero-top { flex-direction: column; gap: 14px; }
  .dp-v2-selectors { width: 100%; flex-wrap: wrap; gap: 8px; }
  .dp-v2-selector { flex: 1 1 45%; min-width: 130px; }
  .dp-v2-select { width: 100%; min-height: 44px; font-size: 15px; }
  .dp-v2-title { font-size: clamp(21px, 6vw, 26px); line-height: 1.25; word-wrap: break-word; }
  .dp-v2-hero-cta { width: 100%; display: flex; gap: 10px; }
  .dp-v2-track-btn { flex: 1 1 auto; justify-content: center; min-height: 46px; font-size: 14px; padding: 10px 12px; }

  /* -- price cards: stack, no dead air ------------------------------ */
  .dp-v2-price-cards {grid-template-columns: 1fr;/* display: grid; */gap: 12px;}
  .dp-v2-price-card {width: 100%;min-height: 0;padding: 16px;}
  .dp-v2-price-card-value { font-size: 26px; }
  .dp-v2-price-card-link {display: inline-block;/* padding: 10px 0; *//* min-height: 44px; */}

  /* -- chart: single column, capped height, no clipping ------------- */
  .dp-v2-chart-grid { display: block; }
  .dp-v2-chart-main {width: 100%;display: none;}
  .dp-v2-chart-header { flex-direction: column; align-items: flex-start; gap: 10px; }
  .dp-v2-chart-title { font-size: 18px; }
  .dp-v2-period-tabs { width: 100%; display: flex; }
  .dp-v2-period { flex: 1 1 auto; min-height: 40px; }
  .dp-v2-chart-canvas-wrap { width: 100%; max-width: 100%; height: 240px; overflow: hidden; }
  .dp-v2-chart-canvas-wrap canvas { width: 100% !important; height: 240px !important; }
  .dp-v2-compare-sidebar { width: 100%; margin-top: 16px; }
  .dp-v2-compare-indices { min-height: 0; }

  /* -- jewelry grid: two-up, compact skeletons ---------------------- */
  .dp-v2-results-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .dp-v2-results-grid .dp-v2-skeleton { height: 150px; }
  .dp-v2-results-header { flex-wrap: wrap; gap: 8px; }
  .dp-v2-results-title { font-size: 18px; }
  .dp-v2-view-all { min-height: 44px; display: inline-flex; align-items: center; }

  /* -- shapes strip: snap scroll, thumb-sized pills ------------------ */
  .dp-v2-shapes-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch; flex-wrap: nowrap; gap: 10px; padding-bottom: 6px; }
  .dp-v2-shape-pill { flex: 0 0 auto; scroll-snap-align: start; min-height: 44px; padding: 8px 14px; }

  /* -- table: horizontal scroll INSIDE its wrap, page never scrolls -- */
  .dp-v2-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .dp-v2-price-table { min-width: 480px; font-size: 13px; }
  .dp-v2-price-table th, .dp-v2-price-table td {padding: 10px 8px;white-space: nowrap;}

  /* -- trust stats: stack, compact ----------------------------------- */
  .dp-v2-trust-stats { flex-direction: column; gap: 16px; }
  .dp-v2-trust-tagline { font-size: 17px; }
  .dp-v2-stat { flex-direction: row; align-items: center; gap: 12px; text-align: left; }

  /* -- narrative + SEO text: natural wrapping ------------------------ */
  .dp-market-summary, .dp-v2-seo-text {font-size: 14.5px;line-height: 1.65;margin-top: 14px;}
  .dp-v2-seo-section, .dp-v2-faq-section { padding-top: 20px; padding-bottom: 20px; }
}

@media (max-width: 360px) {
  .dp-v2-selector { flex: 1 1 100%; }
  .dp-v2-hero-cta { flex-direction: column; }
  .dp-v2-results-grid { grid-template-columns: 1fr; }
  .dp-v2-price-card-value { font-size: 23px; }
}

/* Three-concept pricing cards (2026-07-13): Fair / Best Available / Range */
.dp-v2-price-cards { grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.dp-v2-range-card .dp-v2-price-card-value { font-size: 24px; }
@media (max-width: 480px) {
  .dp-v2-price-cards {grid-template-columns: 2fr;}
  .tdp-route__trio { gap: 10px 18px; }
  .tdp-route__trio-value { font-size: 17px; }
}

/* Chart must never exceed the viewport (2026-07-13 mobile fix) + range label */
.dp-v2-chart-section { overflow-x: hidden; }
.dp-v2-chart-grid { max-width: 100%; }
.dp-v2-chart-grid > * { min-width: 0; }
.dp-v2-chart-main { max-width: 100%; }
.dp-v2-chart-canvas-wrap { max-width: 100%; overflow: hidden; }
.dp-v2-chart-canvas-wrap canvas { max-width: 100% !important; }
.dp-v2-chart-range { display: inline-block; font-size: 13px; color: #6b7280; margin-left: 10px; }
@media (max-width: 768px) {
  .dp-v2-chart-grid { display: block; }
  .dp-v2-compare-sidebar {width: 100%;max-width: 100%;margin-top: 0px;}
  .dp-v2-chart-range { display: block; margin-left: 0; margin-top: 4px; }
}

/* ═════════════════════════════════════════════════════════════════════════════
 * PRICE DISTRIBUTION (2026-07-14)
 *
 * Replaces the fabricated "Price History & Trend" chart. We have no price
 * history - the history endpoint returns [] for every cohort - so we show the
 * distribution we CAN defend: where the fair price sits, where the market range
 * sits, and where today's best available stone sits inside it.
 * Server-rendered from the canonical pricing context. No canvas, no JS.
 * ═════════════════════════════════════════════════════════════════════════════ */

.dp-v2-dist {
    padding: 56px 8px 20px;
}

.dp-v2-dist-track {
    position: relative;
    height: 14px;
    margin: 0 0 12px;
    background: #f1f5f9;
    border-radius: 999px;
}

/* The p25–p75 band - where most comparable stones actually list. */
.dp-v2-dist-band {
    position: absolute;
    top: 0;
    height: 100%;
    background: linear-gradient(90deg, #dbe4ee 0%, #c7d5e5 100%);
    border-radius: 999px;
}

.dp-v2-dist-marker {
    position: absolute;
    top: -5px;
    width: 2px;
    height: 24px;
    transform: translateX(-1px);
}

.dp-v2-dist-marker--fair { background: #264265; z-index: 2; }
.dp-v2-dist-marker--best { background: #00a651; z-index: 3; }

/* The label sits above its marker and never clips at the track edges. */
.dp-v2-dist-flag {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    white-space: nowrap;
    line-height: 1.25;
}

.dp-v2-dist-flag-label {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: #64748b;
}

.dp-v2-dist-flag-value {
    font-size: 19px;
    font-weight: 800;
    color: #264265;
    font-variant-numeric: tabular-nums;
}

.dp-v2-dist-flag--best .dp-v2-dist-flag-value { color: #00a651; }

.dp-v2-dist-delta {
    font-size: 12px;
    font-weight: 700;
    font-style: normal;
    color: #00a651;
    margin-left: 4px;
}

.dp-v2-dist-axis {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    font-size: 12.5px;
    color: #64748b;
    font-variant-numeric: tabular-nums;
}

.dp-v2-dist-axis-mid {
    font-size: 11.5px;
    color: #94a3b8;
    text-align: center;
}

.dp-v2-dist-source {
    margin: 14px 0 0;
    font-size: 12.5px;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.dp-v2-dist-source strong { color: #64748b; }

/* Below ~640px the two flags would overlap: stack them and drop the mid caption. */
@media (max-width: 640px) {
    .dp-v2-dist { padding-top: 76px; }
    .dp-v2-dist-marker--best .dp-v2-dist-flag { bottom: 52px; }
    .dp-v2-dist-flag-value { font-size: 16px; }
    .dp-v2-dist-axis-mid { display: none; }
}

/* ── Compare cards + price table: real medians, sample sizes, no fake trends ── */

.dp-v2-compare-count {
    font-size: 11.5px;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.dp-v2-compare-note {
    margin: 10px 0 0;
    padding-top: 10px;
    border-top: 1px solid #e2e8f0;
    font-size: 12px;
    color: #94a3b8;
    line-height: 1.5;
}

.dp-v2-compare-note strong { color: #264265; }

.dp-v2-table-count {
    font-variant-numeric: tabular-nums;
    color: #64748b;
}

.dp-v2-table-change--base {
    color: #94a3b8;
    font-weight: 600;
}

/* The row for the shape you are actually looking at. */
.dp-v2-table-row--current {
    background: #f8fafc;
}

.dp-v2-table-row--current .dp-v2-table-shape-name {
    font-weight: 800;
}

/* ============================================================================
   PRICE HISTORY - The Diamond Price Index (1.7.9)
   ----------------------------------------------------------------------------
   Replaces the chart that, until 1.7.7, drew its every point from Math.random().
   Server-rendered SVG: no client fetch (the API carries a 30-day Cache-Control
   we do not control, so a browser fetch would happily serve month-stale prices),
   and no client math. What ships in the HTML is what was measured.

   Plots an INDEX (% change), never dollars - the page has exactly one dollar
   authority, the hero's fair market price, and a second differently-cohorted
   dollar figure beside it is the 2026-07-13 trust incident all over again.
   ========================================================================== */

.dp-hist {
    --dp-hist-accent: #264265;   /* brand navy - the page's primary; the chart line stays
                                    this ONE neutral color regardless of direction - the
                                    buyer verdict lives in the Recommendation card above,
                                    not on the line (see buying-recommendation.php). */
    padding: 0 0 48px;
}

.dp-hist-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.dp-hist-head {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 24px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.dp-hist-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: #264265;
    margin: 0;
    font-family: 'Nunito Sans', sans-serif;
}

.dp-hist-sub {
    margin: 6px 0 0;
    font-size: 0.95rem;
    color: #64748b;
    line-height: 1.5;
}

.dp-hist-neutral { color: var(--tdp-state-neutral-text); font-weight: 700; }

.dp-hist-ticks { display: flex; gap: 20px; flex-wrap: wrap; }

.dp-hist-tick { display: flex; flex-direction: column; align-items: flex-end; }

.dp-hist-tick-l {
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #94a3b8;
    font-weight: 700;
}

.dp-hist-tick-v {
    font-size: 1.05rem;
    font-weight: 800;
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

/* ── plot ─────────────────────────────────────────────────────────────────── */
.dp-hist-plot { position: relative; }

.dp-hist-svg {
    display: block;
    width: 100%;
    height: 220px;
    touch-action: pan-y;          /* let the page scroll vertically through the chart */
    overflow: visible;
}

.dp-hist-line {
    fill: none;
    stroke: var(--dp-hist-accent);
    stroke-width: 2;
    stroke-linejoin: round;
    stroke-linecap: round;
}

/* Where the index stood on day one. The reference the whole chart is about. */
.dp-hist-base {
    stroke: #cbd5e1;
    stroke-width: 1;
    stroke-dasharray: 4 4;
}

.dp-hist-cross { stroke: var(--dp-hist-accent); stroke-width: 1; stroke-dasharray: 3 3; }
.dp-hist-dot,
.dp-hist-now   { fill: var(--dp-hist-accent); stroke: #ffffff; stroke-width: 2; }

.dp-hist-tip {
    position: absolute;
    z-index: 3;
    pointer-events: none;
    transform: translate(-50%, -125%);
    background: #0f172a;
    color: #ffffff;
    border-radius: 6px;
    padding: 7px 10px;
    font-size: 0.75rem;
    line-height: 1.4;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    display: flex;
    flex-direction: column;
}
.dp-hist-tip[hidden] { display: none; }
.dp-hist-tip b { font-size: 0.9rem; font-weight: 800; }
.dp-hist-tip span { color: #94a3b8; }

/* ── footer + provenance ──────────────────────────────────────────────────── */
.dp-hist-foot {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 0.75rem;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

.dp-hist-meta { color: #64748b; font-weight: 600; }

.dp-hist-note {
    margin: 16px 0 0;
    font-size: 0.8rem;
    line-height: 1.6;
    color: #94a3b8;
}

@media (max-width: 768px) {
    .dp-hist { padding-bottom: 32px; }
    .dp-hist-card { padding: 18px 16px; border-radius: 12px; }
    .dp-hist-title { font-size: 1.05rem; }
    .dp-hist-head { gap: 14px; margin-bottom: 16px; }
    .dp-hist-ticks { gap: 16px; }
    .dp-hist-tick { align-items: flex-start; }
    .dp-hist-svg { height: 170px; }
    .dp-hist-foot { font-size: 0.7rem; }
    .dp-hist-meta { order: 3; flex-basis: 100%; text-align: center; }
}

/* A lone observation with no neighbours inside the gap window. It cannot be drawn as
   a line, and dropping it would quietly delete a real measurement - so it gets a dot. */
.dp-hist-island { fill: var(--dp-hist-accent); opacity: .55; }

/* ============================================================================
   THE INDEX + RAIL  (1.7.10)
   ----------------------------------------------------------------------------
   Main column = the price-history chart. Rail = market analysis → distribution +
   best available → carat ladder. Replaces the wide chart-main/compare-sidebar pair
   and the two sections removed in this release (the blue AI-analysis band and the
   "Real-time insights" trust band).
   ========================================================================== */

.dp-v2-index-section {padding: 40px 0 24px;}

.dp-index-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 340px;   /* minmax(0,1fr): without it the main
                                                      column's min-content (a 1000px SVG)
                                                      forces the grid wider than the page -
                                                      the mobile-overflow bug class. */
    gap: 24px;
    align-items: start;
}

.dp-index-main { min-width: 0; }

.dp-index-rail {
    display: flex;
    flex-direction: column;
    gap: 16px;
    min-width: 0;
}

/* ── shared rail card ─────────────────────────────────────────────────────── */
.dp-rail-card {
    background: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    padding: 16px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.dp-rail-card-head {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 8px;
    margin-bottom: 12px;
}

.dp-rail-eyebrow {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.09em;
    color: #64748b;
}

.dp-rail-title {
    font-size: 13.5px;
    font-weight: 800;
    color: #274265;
}

.dp-rail-meta {
    font-size: 11px;
    color: #94a3b8;
    font-variant-numeric: tabular-nums;
}

/* ── Market Analysis card + the Gemini fade ───────────────────────────────── */
.dp-rail-ai-head {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.dp-rail-ai-spark {
    width: 32px; height: 32px; flex: 0 0 32px;
    border-radius: 9px;
    background: linear-gradient(135deg, #e8f0fb 0%, #dbe7f8 100%);
    border: 1px solid #d3e0f3;
    position: relative;
}
.dp-rail-ai-spark::after {
    content: "";
    position: absolute; inset: 0;
    background: radial-gradient(circle at 50% 50%, #264265 0 28%, transparent 30%);
    opacity: .85;
}

.dp-rail-ai-head-text { display: flex; flex-direction: column; min-width: 0; }

.dp-rail-ai-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 9px;
}

.dp-rail-ai-item {
    position: relative;
    padding-left: 18px;
    font-size: 13px;
    line-height: 1.5;
    color: #334155;
}
.dp-rail-ai-item::before {
    content: "";
    position: absolute; left: 4px; top: 8px;
    width: 6px; height: 6px;
    border-radius: 50%;
    background: #264265;
}
.dp-rail-ai-item strong { font-weight: 800; color: #0f172a; }

/* The Gemini fade: each finding rises and settles, its text sweeping blue → ink.
   The content is already in the HTML - this animates finished text, it does not
   pretend to be "thinking". --dp-rail-i staggers each bullet. */
@keyframes dpRailGemini {
    0%   { opacity: 0; transform: translateY(5px); color: #3b82f6; }
    55%  { opacity: 1; transform: translateY(0);   color: #2563eb; }
    100% { opacity: 1; transform: translateY(0);   color: #334155; }
}
.dp-rail-ai-item {
    animation: dpRailGemini .85s cubic-bezier(.22,.61,.36,1) both;
    animation-delay: calc(var(--dp-rail-i, 0) * 160ms);
}
@keyframes dpRailSpark {
    0%, 100% { box-shadow: 0 0 0 0 rgba(59,130,246,0); }
    50%      { box-shadow: 0 0 0 5px rgba(59,130,246,.10); }
}
.dp-rail-ai-spark { animation: dpRailSpark 2.6s ease-in-out 1.2s 2; }

@media (prefers-reduced-motion: reduce) {
    .dp-rail-ai-item, .dp-rail-ai-spark { animation: none; }
}

/* ── Price distribution: a REAL histogram ────────────────────────────────────
   Bar heights are true counts from /api/diamond-price-distribution. There is no
   synthetic floor and no bell-curve padding: a bucket with no diamonds in it is drawn
   with no bar. (The calculator chart this replaces adds an invented Gaussian to every
   bucket so it "never reads as empty" - see modules/rail-price-distribution.php.)
   -------------------------------------------------------------------------- */
/* The bars are the DISTRIBUTION and nothing else. They are never coloured to mark a
   price: a bucket is a population (2,206 diamonds on the 1ct round page) and a price is a
   single point, so painting the bucket green would assert that 2,206 stones are "the best
   deal". The two prices get their own markers, placed at their exact value. */
.dp-rail-hist {
    position: relative;
    height: 92px;
    margin: 2px 0 14px;
    padding-bottom: 1px;
    border-bottom: 1px solid #e2e8f0;
}
.dp-rail-bars {
    display: flex;
    align-items: flex-end;
    gap: 2px;
    height: 100%;
}
.dp-rail-bar {
    position: relative;
    flex: 1 1 0;
    min-width: 0;
    background: #cdd9e8;
    border-radius: 3px 3px 0 0;
    transition: background .15s ease;
}
.dp-rail-bar:hover { background: #94a9c4; }

/* ── the price markers ── */
.dp-rail-mark {
    position: absolute;
    top: -3px;
    bottom: 0;
    width: 2px;
    transform: translateX(-1px);
    pointer-events: auto;
    z-index: 2;
}
.dp-rail-mark::before {          /* the vertical line */
    content: "";
    position: absolute;
    inset: 6px 0 0 0;
    background: currentColor;
    border-radius: 1px;
}
.dp-rail-mark::after {           /* the head, so the marker is findable at a glance */
    content: "";
    position: absolute;
    top: 0; left: 50%;
    width: 8px; height: 8px;
    margin-left: -4px;
    border-radius: 50%;
    background: currentColor;
    box-shadow: 0 0 0 2px #fff;
}
.dp-rail-mark--fair { color: #264265; }
.dp-rail-mark--best { color: #00a651; z-index: 3; }
.dp-rail-mark--overall { color: #1d4ed8; z-index: 3; } /* 2026-08-02: Best Overall marker */

.dp-rail-mark-tip {
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #fff;
    border-radius: 6px;
    padding: 5px 8px;
    font-size: 11px;
    line-height: 1.35;
    white-space: nowrap;
    text-align: center;
    font-variant-numeric: tabular-nums;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease;
    z-index: 5;
}
.dp-rail-mark-tip b { font-weight: 800; }
.dp-rail-mark:hover .dp-rail-mark-tip { opacity: 1; }

.dp-rail-bar-tip {
    position: absolute;
    bottom: calc(100% + 6px);
    left: 50%;
    transform: translateX(-50%);
    background: #0f172a;
    color: #fff;
    border-radius: 6px;
    padding: 6px 8px;
    font-size: 11px;
    line-height: 1.35;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    opacity: 0;
    pointer-events: none;
    transition: opacity .12s ease;
    z-index: 4;
}
.dp-rail-bar-tip b { font-weight: 800; }
.dp-rail-bar:hover .dp-rail-bar-tip { opacity: 1; }
/* The end bars would push their tooltip off the card. */
.dp-rail-bar:first-child  .dp-rail-bar-tip { left: 0; transform: none; }
.dp-rail-bar:last-child   .dp-rail-bar-tip { left: auto; right: 0; transform: none; }

.dp-rail-legend {
    display: flex;
    gap: 14px;
    margin-bottom: 12px;
    font-size: 10.5px;
    color: #64748b;
    font-weight: 600;
}
.dp-rail-key { display: inline-flex; align-items: center; gap: 5px; }
.dp-rail-dot { width: 7px; height: 7px; border-radius: 50%; display: inline-block; }
.dp-rail-key.is-fair .dp-rail-dot { background: #264265; }
.dp-rail-key.is-best .dp-rail-dot { background: #00a651; }
.dp-rail-key.is-overall .dp-rail-dot { background: #1d4ed8; } /* 2026-08-02: Best Overall */

.dp-rail-figs {
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding-top: 12px;
    border-top: 1px solid #f1f5f9;
}
.dp-rail-fig { display: flex; flex-direction: column; gap: 1px; }

/* Figure + its own action on one line - replaces the single full-width CTA that used to
   sit at the foot of the card. Each number now carries the next step that belongs to it:
   the range goes to Search, the best stone goes to the stone. */
.dp-rail-fig--row {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}
.dp-rail-fig-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }

.dp-rail-fig dt {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    font-weight: 700;
    color: #94a3b8;
}
.dp-rail-fig dd {
    margin: 0;
    font-size: 16px;
    font-weight: 800;
    color: #274265;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}
.dp-rail-fig--best dd { color: #00a651; }
.dp-rail-fig--overall dd {/* color: #1d4ed8; */} /* 2026-08-02: Best Overall */

.dp-rail-save {
    margin-left: 6px;
    font-size: 10.5px;
    font-weight: 800;
    color: #00a651;
    background: #e8f7ee;
    border-radius: 4px;
    padding: 2px 5px;
    vertical-align: middle;
}

.dp-rail-mini {
    flex: 0 0 auto;
    padding: 6px 11px;
    border-radius: 8px;
    border: 1px solid #cbd5e1;
    background: #fff;
    color: #264265;
    font-size: 12px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    transition: border-color .15s ease, background .15s ease;
}
.dp-rail-mini:hover { border-color: #264265; background: #f4f8fd; color: #264265; }
.dp-rail-mini--go {
    background: #00a651;
    border-color: #00a651;
    color: #fff;
}
.dp-rail-mini--go:hover { background: #008a44; border-color: #008a44; color: #fff; }
/* Lowest-price row + CTA are intentionally NEUTRAL (operator 2026-07-27): only "Best deal"
   carries an accent (green). The lowest value inherits .dp-rail-fig dd (#0f172a) and its CTA
   inherits the plain .dp-rail-mini button (white / grey border) - no special colour. */
/* ── Carat ladder ─────────────────────────────────────────────────────────── */
.dp-rail-carat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(64px, 1fr));
    gap: 6px;
}
.dp-rail-carat {
    display: block;
    padding: 8px 4px;
    text-align: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12.5px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    font-variant-numeric: tabular-nums;
    transition: border-color .15s ease, color .15s ease;
}
.dp-rail-carat:hover { border-color: #264265; color: #0f172a; }
.dp-rail-carat.is-current {
    background: #264265;
    border-color: #264265;
    color: #ffffff;
    cursor: default;
}

/* ── responsive: the rail drops below the chart ───────────────────────────── */
@media (max-width: 1024px) {
    .dp-index-grid { grid-template-columns: minmax(0, 1fr); }
    .dp-index-rail { flex-direction: column; }
}

@media (max-width: 768px) {
    .dp-v2-index-section { padding: 24px 0 32px; }
    .dp-index-grid { gap: 16px; }
    .dp-rail-card { padding: 14px; border-radius: 12px; }
    .dp-rail-carat-grid { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); }
}

/* ── the discontinuity marker on the ordinal-axis chart ───────────────────── */
.dp-hist-gap {
    stroke: #cbd5e1;
    stroke-width: 1;
    stroke-dasharray: 2 3;
    opacity: .9;
}
.dp-hist-area { pointer-events: none; }

/* ── the main column owns the reading path ────────────────────────────────── */
/* .tdp-route ships as a standalone full-width section (max-width:1280px; margin:40px
   auto). Inside the grid column it must fill the column instead of re-clamping itself. */
.dp-index-main .tdp-route {
    max-width: 100%;
    margin: 20px 0 0;
}
.dp-index-main .dp-hist {margin: 0;padding-bottom: 0px;}

/* The rail follows the reader down the main column. `align-self: start` is required -
   a stretched grid item is full-height and `sticky` has nothing to slide within. */
.dp-index-rail {
    position: sticky;
    top: 20px;
    align-self: start;
}

/* ── Shape chooser ────────────────────────────────────────────────────────── */
.dp-rail-shape-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 6px;
}
.dp-rail-shape {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 7px 8px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 12px;
    font-weight: 700;
    color: #334155;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease;
    min-width: 0;
}
.dp-rail-shape span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dp-rail-shape:hover { border-color: #264265; color: #0f172a; }
/* Active state is a TINT, not a fill. The first cut used a navy fill with
   `filter: brightness(0) invert(1)` on the icon, which flattens the shape art to a solid
   white silhouette - and for a round diamond that renders as a featureless white circle,
   i.e. it looked like the icon was missing. Keep the icon exactly as drawn; signal
   "current" with the surround instead. */
.dp-rail-shape.is-current {
    background: #eef3fa;
    border-color: #264265;
    box-shadow: inset 0 0 0 1px #264265;
    color: #14293f;
    cursor: default;
    border: none;
}
.dp-rail-shape-icon {
    width: 22px; height: 22px; flex: 0 0 22px;
    object-fit: contain;
}

@media (max-width: 1024px) {
    /* Rail drops below the main column - sticky would pin it to the viewport there. */
    .dp-index-rail { position: static; }
}

/* Buckets below our price floor. Drawn muted, never hidden: they are real listings, the
   reader can find them in Search anyway, and a chart that silently omitted them would be
   the kind of quiet dishonesty this whole surface exists to eliminate. */
.dp-rail-bar.is-excluded { background: #e6ebf1; }
.dp-rail-bar.is-excluded:hover { background: #cdd6e1; }
.dp-rail-key.is-excluded .dp-rail-dot { background: #e6ebf1; border: 1px solid #cbd5e1; }
.dp-rail-bar-tip em { color: #cbd5e1; font-style: normal; }
.dp-rail-foot-note {
    margin: -4px 0 10px;
    font-size: 10.5px;
    line-height: 1.45;
    color: #94a3b8;
}

/* The index chart on the landing pages (/diamond-prices/, /natural/, /lab-grown/, and the
   shape landings). Same card as the carat pages, but it stands alone - there is no rail
   beside it, so it takes the full container width. */
.dp-v2-index-section > .dp-v2-container > .dp-hist {margin: 0;padding-bottom: 0px;padding: unset;}
.dp-v2-index-section > .dp-v2-container > .dp-hist .dp-hist-card { width: 100%; }

/* The card must never exceed its column. On the carat pages the grid's `minmax(0,1fr)`
   was doing this implicitly; on the landing pages the card is a direct child of the
   container and measured 396px inside a 390px viewport - 6px of horizontal scroll, which
   is exactly the bug class that produced releases 1.7.5 and 1.7.8. Clamp it explicitly. */
.dp-hist,
.dp-hist-card {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
}
.dp-hist-plot { min-width: 0; }

/* #4 - the H1 owns no trailing space; the row beneath it sets its own rhythm. */
.dp-v2-title { margin-bottom: 0px; }

/* #6 - the Market Analysis mark. The four-point star is the house glyph for a
   computed reading; it replaces the CSS-drawn dot, which read as a bullet. */
.dp-rail-ai-spark {
    display: flex;
    align-items: center;
    justify-content: center;
}
.dp-rail-ai-spark::after { content: none; }   /* was the radial-gradient dot */
.dp-rail-ai-spark svg { display: block; }

/* #1 - the filter bar sticks under the site header while you scroll the page.
   `top` is the header's height; the bar carries its own surface + hairline so text
   scrolling beneath it never shows through. */
.dp-v2-live-row {
    position: sticky;
    top: var(--tdp-header-h, 72px);
    z-index: 40;
    /* background: #ffffff; */
    border-bottom: 1px solid #e2e8f0;
    padding: 10px 0;
    margin-bottom: 12px;
    /* full-bleed inside the container so the sticky surface spans edge to edge */
    box-shadow: 0 1px 0 rgba(15, 23, 42, .04), 0 6px 16px -12px rgba(15, 23, 42, .25);
}
@media (max-width: 768px) {
    .dp-v2-live-row {
        top: var(--tdp-header-h-mobile, 60px);
        gap: 8px;
        overflow-x: auto;                 /* the controls scroll, the page does not */
        -webkit-overflow-scrolling: touch;
        flex-wrap: nowrap;
        scrollbar-width: none;
    }
    .dp-v2-live-row::-webkit-scrollbar { display: none; }
}

/* #7 - quality band filter under the index. Each control names the grades behind it:
   changing "quality" changes what the median MEANS, and a control that hides that is how
   a blended index went a year telling people a marquise costs more than a round. */
.dp-hist-bands {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #f1f5f9;
}
.dp-hist-bands-label {
    font-size: 10.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #94a3b8;
    margin-right: 4px;
}
.dp-hist-band {
    display: flex;
    flex-direction: column;
    gap: 1px;
    padding: 6px 10px;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    text-decoration: none;
    transition: border-color .15s ease, background .15s ease;
}
.dp-hist-band:hover { border-color: #264265; background: #f6f9fd; }
.dp-hist-band.is-on { background: #264265; border-color: #264265; }
.dp-hist-band-name  { font-size: 12px; font-weight: 700; color: #0f172a; }
.dp-hist-band-grade { font-size: 10px; color: #94a3b8; font-variant-numeric: tabular-nums; }
.dp-hist-band.is-on .dp-hist-band-name  { color: #ffffff; }
.dp-hist-band.is-on .dp-hist-band-grade { color: #b9c8dc; }

.dp-hist-card--empty { text-align: left; }
.dp-hist-card--empty .dp-hist-note a { color: #264265; font-weight: 700; }

@media (max-width: 768px) {
    .dp-hist-bands { gap: 5px; }
    .dp-hist-band { padding: 5px 8px; }
    .dp-hist-band-grade { display: none; }   /* the grade line is the first thing to go */
}

/* #10 - the prices table gets a sidebar: price-per-carat for this shape.
   The table prices every SHAPE at one carat; this prices every CARAT at one shape. */
.dp-table-grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    align-items: start;
}
.dp-table-main { min-width: 0; }
.dp-table-rail { min-width: 0; }

.dp-table-rail-lede {
    margin: 0 0 12px;
    font-size: 12.5px;
    line-height: 1.5;
    color: #64748b;
}
.dp-table-rail-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}
.dp-table-rail-link {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 62px 58px;
    align-items: center;
    gap: 8px;
    padding: 6px 6px;
    border-radius: 7px;
    text-decoration: none;
    color: #334155;
    font-variant-numeric: tabular-nums;
    transition: background .12s ease;
}
a.dp-table-rail-link:hover { background: #f4f8fd; }

.dp-table-rail-ct  { font-size: 12.5px; font-weight: 700; color: #0f172a; }
.dp-table-rail-per { font-size: 12.5px; font-weight: 800; text-align: right; color: #0f172a; }
.dp-table-rail-per small { font-weight: 600; color: #94a3b8; font-size: 9.5px; }
.dp-table-rail-tot { font-size: 11.5px; text-align: right; color: #94a3b8; }

.dp-table-rail-bar {
    display: block;
    height: 6px;
    border-radius: 3px;
    background: #f1f5f9;
    overflow: hidden;
}
.dp-table-rail-bar > span {
    display: block;
    height: 100%;
    border-radius: 3px;
    background: #cdd9e8;
}

.dp-table-rail-row.is-current .dp-table-rail-link { background: #eef3fa; box-shadow: inset 0 0 0 1px #264265; }
.dp-table-rail-row.is-current .dp-table-rail-bar > span { background: #264265; }
/* The best value-for-weight in the ladder - the cheapest price PER CARAT. */
.dp-table-rail-row.is-value .dp-table-rail-bar > span { background: #00a651; }
.dp-table-rail-row.is-value .dp-table-rail-per { color: #00a651; }

.dp-table-rail-foot {
    margin: 12px 0 0;
    padding-top: 10px;
    border-top: 1px solid #f1f5f9;
    font-size: 10.5px;
    line-height: 1.5;
    color: #94a3b8;
}

@media (max-width: 1024px) {
    .dp-table-grid { grid-template-columns: minmax(0, 1fr); }
}

/* The sticky bar must be a SCROLL CONTAINER, not a wide box. `overflow-x:auto` alone does
   nothing while a flex ancestor lets the item grow to its content width - it measured
   467px inside a 390px viewport. min-width:0 is what actually lets a flex item shrink
   below its content; without it the controls push the box wide and the page scrolls. */
.dp-v2-hero-left,
.dp-v2-hero-top { min-width: 0; }
.dp-v2-live-row {
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
}

/* THE ACTUAL CAUSE of the sticky bar's overflow.
   .dp-v2-hero-top is a COLUMN flex container with `align-items: flex-start`, so its
   children size to their CONTENT width on the cross axis - .dp-v2-hero-left shrink-wrapped
   to its widest child (467px) and blew past the 362px column. No amount of min-width:0 or
   overflow-x on the bar itself can fix that: the bar was correctly filling a parent that
   was itself too wide. Stretch the child to the column instead, and the bar becomes a real
   scroll container. */
.dp-v2-hero-left {
    align-self: stretch;
    min-width: 0;
    max-width: 100%;
}

/* The shape table no longer publishes a "vs round" comparison. It was asserting that a
   marquise costs more than a round - impossible; a round wastes the most rough in cutting.
   Both our sources agreed on the impossible answer, which ruled out sample noise: the cause
   is a SELECTION effect. At an identical spec (1ct, G–H, VS1–VS2) the retailer lists 1,810
   rounds spanning every cut quality (median $4,110) and 81 marquise from an evidently
   premium slice (median $5,202). We cannot correct for it, because `cut` - the dominant
   price driver - is null on every stone in the feed. So we say so, instead of guessing. */
.dp-v2-table-note {
    margin: 14px 0 0;
    font-size: 12px;
    line-height: 1.6;
    color: #94a3b8;
    max-width: 100%;
}

/* ============================================================================
   1.7.13 - hero & layout tuning (operator direction)
   Appended last so these win the cascade over the many earlier same-specificity
   rules for these selectors. Base (non-media) so they hold at every width.
   ========================================================================== */

/* #6 - hero: tighter, and no gradient background (let the graph lead the view). */
.dp-v2-hero { background: none; padding: 48px 0 20px; }

/* #5 - the selector/title row hugs what follows it. */
.dp-v2-hero-top {margin-bottom: 26px;}

/* #4 - price cards. */
.dp-v2-price-card {padding: 15px 23px;display: flex;flex-direction: column;justify-content: space-between;position: relative;}

/* #13 - the guide ("About … prices") section: from a plain text dump to a
   readable article block. Measure, rhythm, and a calm surface. */
.dp-v2-guide-section {
    padding: 40px 0 6px;
    background: #f8fafc;
    border-top: 1px solid #eef2f6;
}
.dp-v2-guide-section .dp-v2-seo-content { max-width: 760px; }
.dp-v2-guide-section .dp-v2-seo-title {
    font-size: 1.5rem;
    font-weight: 800;
    color: #264265;
    letter-spacing: -0.01em;
    margin: 0 0 6px;
}
.dp-v2-guide-section .dp-v2-seo-text { font-size: 15.5px; line-height: 1.75; color: #3c4956; }
.dp-v2-guide-section .dp-v2-seo-text h3 {
    font-size: 1.05rem;
    font-weight: 700;
    color: #264265;
    margin: 28px 0 8px;
}
.dp-v2-guide-section .dp-v2-seo-text p { margin: 0 0 14px; }
.dp-v2-guide-section .dp-v2-seo-text ul { margin: 0 0 14px; padding-left: 0; list-style: none; }
.dp-v2-guide-section .dp-v2-seo-text li {
    position: relative;
    padding: 7px 0 7px 26px;
    border-bottom: 1px solid #eef2f6;
}
.dp-v2-guide-section .dp-v2-seo-text li:last-child { border-bottom: 0; }
.dp-v2-guide-section .dp-v2-seo-text li::before {
    content: "";
    position: absolute; left: 6px; top: 15px;
    width: 6px; height: 6px; border-radius: 50%;
    background: #264265;
}
.dp-v2-guide-section .dp-v2-seo-text li strong { color: #0f172a; font-weight: 700; }

/* #1 - overflow end-caps on the distribution histogram. Stones outside the clipped
   window are folded here (never dropped) so the axis stays focused on the dense middle.
   Muted + hatched so they read as "and more beyond", not as a normal bucket. */
.dp-rail-bar--cap {
    background: repeating-linear-gradient(45deg, #dbe3ec 0, #dbe3ec 3px, #eef2f6 3px, #eef2f6 6px);
}
.dp-rail-bar--cap:hover { background: repeating-linear-gradient(45deg, #cbd5e1 0, #cbd5e1 3px, #e2e8f0 3px, #e2e8f0 6px); }

/* ============================================================================
   #3 - sticky header now carries the actions too
   ========================================================================== */
.dp-v2-live-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
}
.dp-v2-live-controls {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
    min-width: 0;
}
.dp-v2-live-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 0;
}
/* Compact the buttons so they sit comfortably in the header band. */
.dp-v2-live-actions .dp-v2-track-btn {
    padding: 8px 14px;
    font-size: 13px;
    gap: 6px;
}
/* The hero-cta column is gone on carat pages (CTAs moved to the live-row). But the
   LANDING pages still use it, so we do NOT hide it globally - that blanked their
   Track/View-All buttons (fixed 2026-07-15). Carat pages have no .dp-v2-hero-cta at all. */

@media (max-width: 768px) {
    .dp-v2-live-row {flex-wrap: nowrap;overflow-x: auto;justify-content: flex-start;}
    .dp-v2-live-actions { flex-shrink: 0; }
    .dp-v2-live-actions .dp-v2-track-btn span:not(.dp-sr) { }  /* keep labels */
}

/* ============================================================================
   #7 - compact "inline" market summary under the H1
   No card, no heading - one confident line + a condition chip, so the price
   history chart still reaches the first viewport.
   ========================================================================== */
.dp-market-summary--inline {
    background: none;
    border: 0;
    box-shadow: none;
    padding: 0;
    margin: 8px 0 5px;
    display: flex;
    align-items: center;
    /* gap: 10px; */
    flex-wrap: wrap;
    width: 100%;
    justify-content: center;
}
.dp-market-summary--inline .dp-market-summary__header { margin: 0; display: inline-flex; }
.dp-market-summary--inline .dp-market-summary__title { display: none; }   /* redundant under the H1 */
.dp-market-summary--inline .dp-market-summary__body {
    margin: 0;
    font-size: 14px;
    line-height: 1.5;
    color: #475569;
    max-width: 100%;
    padding-right: 20%;
}
.dp-market-summary--inline .dp-market-summary__reason { display: none; }  /* keep it to one line */
.dp-market-summary--inline .dp-market-summary__badge {
    order: -1;                       /* chip leads the line */
    flex-shrink: 0;
    align-self: center;
    display: none;
}

/* #11 - Round-by-carat is now a list with the market range per weight. */
.dp-rail-carat-list { display: flex; flex-direction: column; gap: 1px; }
.dp-rail-crow {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 10px;
    padding: 7px 8px;
    border-radius: 7px;
    text-decoration: none;
    color: #334155;
    transition: background .12s ease;
}
a.dp-rail-crow:hover { background: #f4f8fd; }
.dp-rail-crow-ct { font-size: 12.5px; font-weight: 700; color: #0f172a; white-space: nowrap; }
.dp-rail-crow-range { font-size: 12px; color: #475569; font-variant-numeric: tabular-nums; text-align: right; }
.dp-rail-crow-range--none { color: #cbd5e1; }
.dp-rail-crow.is-current { background: #eef3fa; box-shadow: inset 0 0 0 1px #264265; }
.dp-rail-crow.is-current .dp-rail-crow-range { color: #264265; font-weight: 700; }

/* #10 - Compare-another-shape now lives in the prices-table sidebar; give it room. */
.dp-table-grid > .dp-rail-shapes { align-self: start; }

/* ============================================================================
   1.7.14 - operator batch (1.5ct carat page + landings)
   ========================================================================== */

/* #4 - the index section hugs the hero above it. */
.dp-v2-index-section { padding-top: 10px; }

/* #2 - breadcrumb + live-row become a single sticky two-tier header. */
.dp-v2-sticky-header {
    position: sticky;
    top: 61px;   /* = .dp-v2-wrapper padding-top: the fixed global header height */
    z-index: 50;
    background: #ffffffa3;
    /* border-bottom: 1px solid #e2e8f0; */
    /* box-shadow: 0 1px 0 rgba(15,23,42,.04), 0 6px 16px -12px rgba(15,23,42,.20); */
    backdrop-filter: blur(6px);
}
.dp-v2-sticky-header .dp-v2-breadcrumb { padding: 8px 0 0; }
.dp-v2-sticky-header .dp-v2-live-row {
    position: static;                 /* the wrapper is the sticky element now */
    border-bottom: 0;
    box-shadow: none;
    margin: 0;
    padding: 15px 0 10px;
}

/* #5 - the "Compare another shape" card in the table sidebar sticks while the long
   table scrolls past it. */
.dp-table-grid > .dp-rail-shapes,
.dp-rail-card.dp-rail-shapes {
    position: sticky;
    top: 150px;                       /* fixed header (64) + sticky two-tier header (~86) */
    align-self: start;
}
@media (max-width: 1024px) { .dp-rail-card.dp-rail-shapes { position: static; } }

/* #8 - Lowest Price hero card (sits after Best Available). Distinct from the green
   deal card: this is the raw floor, so it reads plainer, with a caution tint. */
.dp-v2-lowest-card { border: 1px solid #e2e8f0; }
.dp-v2-lowest-card .dp-v2-price-card-value { color: #0f172a; }   /* neutral - only Best deal gets an accent */
.dp-v2-lowest-note {font-size: 11.5px;color: #94a3b8;margin: 2px 0 0px;line-height: 1.4;position: absolute;bottom: 35px;display: none;}

/* #8 - Lowest marker on the distribution histogram + legend key. Neutral grey
   (operator 2026-07-27): only Best deal is coloured. */
.dp-rail-mark--lowest { color: #94a3b8; }
.dp-rail-key.is-lowest .dp-rail-dot { background: #94a3b8; }

/* #8 - Lowest strip under the deal ladder in the wide diamonds module. */
.tdp-route__lowest {
    display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap;
    margin-top: 12px; padding: 10px 14px;
    border: 1px dashed #e2e8f0; border-radius: 10px;
    background: #fafbfc; text-decoration: none; color: #0f172a;
    transition: border-color .15s ease;
}
.tdp-route__lowest:hover { border-color: #cbd5e1; }
.tdp-route__lowest-label { font-size: 12px; font-weight: 700; color: #64748b; text-transform: uppercase; letter-spacing: .04em; }
.tdp-route__lowest-price { font-size: 18px; font-weight: 800; font-variant-numeric: tabular-nums; }
.tdp-route__lowest-spec { font-size: 12.5px; color: #64748b; }
.tdp-route__lowest-cta { margin-left: auto; font-size: 13px; font-weight: 700; color: #264265; }

/* #6 - vs Round column styles. */
.dp-v2-table-vsround {font-variant-numeric: tabular-nums;font-weight: 700;}
.dp-v2-table-vsround--down { color: #00a651; }
.dp-v2-table-vsround--up { color: #b45309; }
.dp-v2-table-vsround--base { color: #94a3b8; font-weight: 600; }

/* #3 - inline market summary: smooth loading → loaded, no jarring shimmer→text pop. */
.dp-market-summary--inline .dp-market-summary__body { transition: opacity .3s ease; }
.dp-market-summary--inline.is-loading .dp-market-summary__body { opacity: .55; }
.dp-market-summary--inline .dp-shimmer { border-radius: 4px; }
.dp-market-summary--inline .dp-market-summary__badge--loading {
    background: #f1f5f9; color: transparent; position: relative; overflow: hidden;
}
.dp-market-summary--inline .dp-market-summary__badge--loading::after {
    content: ""; position: absolute; inset: 0;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.7), transparent);
    animation: dpShimmerSweep 1.2s infinite;
}
@keyframes dpShimmerSweep { 0%{transform:translateX(-100%)} 100%{transform:translateX(100%)} }

/* ============================================================================
   MOBILE VIEW IMPROVEMENTS (1.7.15) - diamond-prices pages
   Appended last so these win at equal specificity. Scoped to the dp-v2 layout.
   ============================================================================ */
@media (max-width: 768px) {
    /* OVERLAP FIX: the two-tier control bar was position:sticky with top:61px, but the
       wrapper's mobile padding-top (54px) is LESS than that offset, so at scroll 0 the bar
       painted ~61px below its own flow box - landing on top of the breadcrumb and the hero
       title. On a phone a 2-row sticky filter also eats too much viewport. Let it flow. */
    .dp-v2-wrapper .dp-v2-sticky-header { position: static; top: auto; }

    /* Title: never clip, sit comfortably below the controls. */
    .dp-v2-wrapper .dp-v2-title { font-size: 1.55rem; line-height: 1.22; overflow-wrap: break-word; }
    .dp-v2-wrapper .dp-v2-hero { padding-top: 8px; }
    .dp-v2-wrapper .dp-v2-hero-sub { font-size: 0.95rem; }

    /* Breadcrumb reads as one quiet line above the title. */
    .dp-v2-wrapper .dp-v2-breadcrumb { padding: 8px 0; font-size: 0.82rem; }
    .dp-v2-wrapper .dp-v2-breadcrumb .dp-v2-current,
    .dp-v2-wrapper .dp-v2-breadcrumb a { font-size: 0.82rem; }

    /* GAP FIX: the price-history section computed ~171px of padding-bottom on a phone
       (an aspect-ratio spacer that made sense when the chart sized by ratio, but the
       mobile SVG has an explicit height:170px). It left a ~170px dead band between the
       chart and the deals module. Collapse it to normal section spacing. */
    .dp-v2-wrapper .dp-index-main .dp-hist,
    .dp-v2-wrapper .dp-hist {padding-bottom: 0px;padding-top: 0px;}
}
.dp-hist-favorable {
    color: #00a651;
}
a.dp-rail-mini.dp-rail-mini--go.dp-rail-mini--overall {
    background: #274265;
    border-color: #274265;
}

span.dp-v2-table-vsround--favorable {
    color: #00a651;
}