/* Modern, vibrant design for Holidays app */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #6366f1;
    --primary-dark: #4f46e5;
    --secondary: #8b5cf6;
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    
    --bg-dark: #0f172a;
    --bg-card: #1e293b;
    --bg-hover: #334155;
    --text-primary: #f1f5f9;
    --text-secondary: #cbd5e1;
    --border: #334155;
    
    --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
    --shadow: 0 4px 6px -1px rgb(0 0 0 / 0.3);
    --shadow-lg: 0 10px 15px -3px rgb(0 0 0 / 0.4);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
    color: var(--text-primary);
    min-height: 100vh;
    line-height: 1.6;
}

/* Header */
header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 2rem 0;
    box-shadow: var(--shadow-lg);
    margin-bottom: 2rem;
}

header h1 {
    font-size: 2.5rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
}

header .subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* Container */
.container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* View Switcher */
.view-selection-row {
    margin-bottom: 2rem;
    display: flex;
    justify-content: center;
}

.view-switcher {
    display: flex;
    gap: 0.5rem;
    width: 100%;
    max-width: 400px;
}

.view-btn {
    flex: 1;
    padding: 0.5rem;
    border: 1px solid var(--border);
    background: var(--bg-dark);
    color: var(--text-secondary);
    border-radius: 0.375rem;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}

.view-btn:hover {
    background: var(--bg-hover);
}

.view-btn.active {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* Terms Table */
.terms-container {
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border);
    overflow: hidden;
    margin-bottom: 2rem;
    box-shadow: var(--shadow);
}

.terms-table {
    width: 100%;
    border-collapse: collapse;
    text-align: left;
}

.terms-table th {
    background: rgba(255, 255, 255, 0.02);
    padding: 1rem;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.term-row {
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

.term-row:hover {
    background: rgba(255, 255, 255, 0.02);
}

.term-row td {
    padding: 1rem;
    vertical-align: top;
}

.term-row.is-default {
    background-color: rgba(99, 102, 241, 0.06);
}

.term-row.is-default:hover {
    background-color: rgba(99, 102, 241, 0.1);
}

.term-row.active {
    background-color: rgba(245, 158, 11, 0.15) !important;
    border-left: 4px solid var(--warning);
}

.badge-base {
    background-color: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 700;
    padding: 1px 6px;
    border-radius: 4px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.2);
}

.badge-base:before {
    content: "★";
    font-size: 0.6rem;
}

.offer-link {
    color: var(--text-primary);
    font-weight: 600;
    text-decoration: none;
    display: block;
    margin-bottom: 0.25rem;
}

.offer-link:hover {
    color: var(--primary);
}

.meta-destination, .meta-details {
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.term-dates {
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--text-primary);
}

.price-cell {
    display: flex;
    flex-direction: column;
}

.price-val {
    font-weight: 700;
    font-size: 1rem;
    color: var(--text-primary);
}

.price-date {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-top: 0.25rem;
}

.price-diff {
    font-size: 0.75rem;
    font-weight: 600;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    display: inline-block;
    width: fit-content;
    margin-top: 0.25rem;
}

.price-diff.better {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.price-diff.worse {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

.meta-none {
    color: var(--text-secondary);
    opacity: 0.5;
}

.current .price-val {
    color: var(--primary);
}


/* Statistics Grid */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: var(--bg-card);
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

.stat-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.stat-value {
    font-size: 2.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.stat-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-total {
    font-size: 0.7rem;
    opacity: 0.6;
    margin-left: 0.25rem;
    text-transform: none;
    font-weight: normal;
}

/* Filters Card */
.filters-card {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    margin-bottom: 2rem;
}

.filters-card h2 {
    margin-bottom: 1.5rem;
    font-size: 1.5rem;
}

.filters-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
}

.filter-group {
    display: flex;
    flex-direction: column;
}

.filter-group label {
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.filter-group select,
.filter-group input {
    padding: 0.75rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    color: var(--text-primary);
    font-size: 1rem;
    transition: border-color 0.3s, box-shadow 0.3s;
}

.filter-group select:focus,
.filter-group input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.1);
}

.filter-actions {
    grid-column: 1 / -1;
    display: flex;
    gap: 1rem;
    margin-top: 0.5rem;
}

/* Checkbox scroll container */
.checkbox-scroll {
    max-height: 200px;
    overflow-y: auto;
    padding: 0.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 0.5rem;
}

.checkbox-scroll::-webkit-scrollbar {
    width: 6px;
}

.checkbox-scroll::-webkit-scrollbar-track {
    background: var(--bg-dark);
}

.checkbox-scroll::-webkit-scrollbar-thumb {
    background: var(--border);
    border-radius: 3px;
}

.checkbox-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--primary);
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem;
    border-radius: 0.25rem;
    cursor: pointer;
    transition: background-color 0.2s;
}

.checkbox-label:hover {
    background: var(--bg-hover);
}

.checkbox-label input[type="checkbox"] {
    width: 16px;
    height: 16px;
    cursor: pointer;
}

.checkbox-label span {
    font-size: 0.9rem;
    color: var(--text-primary);
}

.selected-item {
    background: rgba(99, 102, 241, 0.1) !important;
}

.selected-item span {
    color: var(--primary);
}

/* Filter search input */
.filter-search {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    background: var(--bg-dark);
    border: 1px solid var(--border);
    border-radius: 0.375rem;
    color: var(--text-primary);
    font-size: 0.9rem;
    width: 100%;
}

.filter-search:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.1);
}

.filter-search::placeholder {
    color: var(--text-secondary);
    opacity: 0.7;
}

/* Select all checkbox */
.checkbox-all {
    border-bottom: 1px solid var(--border);
    margin-bottom: 0.25rem;
    padding-bottom: 0.5rem !important;
}

.checkbox-all:hover {
    background: rgba(99, 102, 241, 0.1) !important;
}


/* Buttons */
.btn {
    padding: 0.75rem 1.5rem;
    border-radius: 0.5rem;
    font-weight: 600;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s;
    cursor: pointer;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary), var(--secondary));
    color: white;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--bg-dark);
    color: var(--text-primary);
    border: 1px solid var(--border);
}

.btn-secondary:hover {
    background: var(--bg-hover);
}

.btn-view {
    background: transparent;
    color: var(--primary);
    border: 1px solid var(--primary);
    padding: 0.5rem 1rem;
    font-size: 0.9rem;
}

.btn-view:hover {
    background: var(--primary);
    color: white;
}

.btn-large {
    padding: 1rem 2rem;
    font-size: 1.1rem;
    width: 100%;
}

/* Results Header */
.results-header {
    margin: 2rem 0 1.5rem;
}

.results-header h2 {
    font-size: 1.8rem;
}

/* Offers Grid */
.offers-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.offer-card {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
    transition: transform 0.3s, box-shadow 0.3s;
    display: flex;
    flex-direction: column;
}

.offer-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary);
}

.offer-header {
    margin-bottom: 1rem;
}

.offer-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
}

.offer-title a {
    color: var(--text-primary);
    text-decoration: none;
    transition: color 0.3s;
}

.offer-title a:hover {
    color: var(--primary);
}

.badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 0.5rem;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
}

.badge-type {
    background: rgba(139, 92, 246, 0.2);
    color: var(--secondary);
}

.badge-promo {
    background: rgba(16, 185, 129, 0.2);
    color: var(--success);
}

.badge-update {
    background: rgba(245, 158, 11, 0.2);
    color: #f59e0b;
    margin-left: 0.5rem;
    vertical-align: middle;
}

.badge-large {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.badge-base {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.2), rgba(139, 92, 246, 0.2));
    color: var(--primary);
    border: 1px solid var(--primary);
    border-radius: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.badge-inactive {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.2), rgba(220, 38, 38, 0.2));
    color: #dc2626;
    border: 1px solid #dc2626;
    border-radius: 0.4rem;
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-meta, .offer-details {
    margin-bottom: 1rem;
}

.meta-item, .detail-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.icon {
    font-size: 1.1rem;
}

.offer-footer {
    margin-top: auto;
    padding-top: 1rem;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.price-section {
    flex: 1;
}

.row-inactive td {
    opacity: 0.5;
    background-color: rgba(0, 0, 0, 0.02);
}

.row-inactive:hover td {
    opacity: 0.8;
}

.price-old {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--success);
}

.price-savings {
    color: var(--warning);
    font-size: 0.85rem;
    margin-top: 0.25rem;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    background: var(--bg-card);
    border-radius: 1rem;
    border: 1px solid var(--border);
}

.empty-icon {
    font-size: 4rem;
    margin-bottom: 1rem;
}

.empty-state h3 {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.empty-state p {
    color: var(--text-secondary);
}

/* Detail Page */
.detail-page {
    background: var(--bg-card);
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--border);
    margin-bottom: 3rem;
}

.detail-header {
    padding-bottom: 2rem;
    border-bottom: 1px solid var(--border);
    margin-bottom: 2rem;
    display: flex;
    justify-content: space-between;
    align-items: start;
    gap: 2rem;
    flex-wrap: wrap;
}

.detail-title-section h1 {
    font-size: 2rem;
    margin-bottom: 1rem;
}

.detail-meta {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-secondary);
    font-size: 1.1rem;
}

.detail-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.detail-card {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.detail-card h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.3s;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li:before {
    content: "✓ ";
    color: var(--success);
    font-weight: bold;
    margin-right: 0.5rem;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.info-value {
    color: var(--text-primary);
}

.pricing-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--primary);
}

.price-comparison {
    margin-bottom: 1rem;
}

.price-old-large {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.price-current-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 1rem;
}

.price-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.savings-banner {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.rating-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-item:last-child {
    border-bottom: none;
}

.rating-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.rating-stars {
    color: var(--warning);
    font-size: 1.2rem;
}

.rating-score {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.score-max {
    color: var(--text-secondary);
}

.metadata-card {
    background: var(--bg-dark);
}

.metadata-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.metadata-item:last-child {
    border-bottom: none;
}

.meta-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-value {
    color: var(--text-primary);
    font-weight: 600;
}

.detail-actions {
    margin-top: 2rem;
}

/* Footer */
footer {
    background: var(--bg-dark);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
}

/* Detail Page Grid Layout */
.detail-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.detail-left {
    min-width: 0; /* Prevent grid blowout */
}

.detail-right {
    position: sticky;
    top: 2rem;
    align-self: start;
}

/* Responsive */
@media (max-width: 1024px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .detail-right {
        position: relative;
        top: 0;
    }
}

.detail-card {
    background: var(--bg-dark);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 1px solid var(--border);
    margin-bottom: 1.5rem;
}

.detail-card h2 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
}

.image-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.3s;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li:before {
    content: "✓ ";
    color: var(--success);
    font-weight: bold;
    margin-right: 0.5rem;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.info-value {
    color: var(--text-primary);
}

.pricing-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--primary);
}

.price-comparison {
    margin-bottom: 1rem;
}

.price-old-large {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.price-current-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 1rem;
}

.price-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.savings-banner {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.rating-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-item:last-child {
    border-bottom: none;
}

.rating-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.rating-stars {
    color: var(--warning);
    font-size: 1.2rem;
}

.rating-score {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.score-max {
    color: var(--text-secondary);
}

.metadata-card {
    background: var(--bg-dark);
}

.metadata-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.metadata-item:last-child {
    border-bottom: none;
}

.meta-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-value {
    color: var(--text-primary);
    font-weight: 600;
}

.detail-actions {
    margin-top: 2rem;
}

/* Footer */
footer {
    background: var(--bg-dark);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-form {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        flex-direction: column;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

.gallery-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 0.5rem;
    transition: transform 0.3s;
}

.gallery-image:hover {
    transform: scale(1.05);
}

.features-list {
    list-style: none;
}

.features-list li {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
}

.features-list li:last-child {
    border-bottom: none;
}

.features-list li:before {
    content: "✓ ";
    color: var(--success);
    font-weight: bold;
    margin-right: 0.5rem;
}

.info-grid {
    display: grid;
    gap: 1rem;
}

.info-item {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: 1rem;
}

.info-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.info-value {
    color: var(--text-primary);
}

.pricing-card {
    background: linear-gradient(135deg, rgba(99, 102, 241, 0.1), rgba(139, 92, 246, 0.1));
    border: 1px solid var(--primary);
}

.price-comparison {
    margin-bottom: 1rem;
}

.price-old-large {
    text-decoration: line-through;
    color: var(--text-secondary);
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
}

.price-current-large {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--success);
    margin-bottom: 1rem;
}

.price-note {
    color: var(--text-secondary);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

.savings-banner {
    background: rgba(245, 158, 11, 0.2);
    color: var(--warning);
    padding: 0.75rem;
    border-radius: 0.5rem;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
}

.rating-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.rating-item:last-child {
    border-bottom: none;
}

.rating-label {
    color: var(--text-secondary);
    font-weight: 600;
}

.rating-stars {
    color: var(--warning);
    font-size: 1.2rem;
}

.rating-score {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.score-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
}

.score-max {
    color: var(--text-secondary);
}

.metadata-card {
    background: var(--bg-dark);
}

.metadata-item {
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
}

.metadata-item:last-child {
    border-bottom: none;
}

.meta-label {
    color: var(--text-secondary);
    font-size: 0.9rem;
}

.meta-value {
    color: var(--text-primary);
    font-weight: 600;
}

.detail-actions {
    margin-top: 2rem;
}

/* Footer */
footer {
    background: var(--bg-dark);
    padding: 2rem 0;
    margin-top: 4rem;
    border-top: 1px solid var(--border);
    text-align: center;
    color: var(--text-secondary);
}

/* Responsive */
@media (max-width: 768px) {
    .detail-grid {
        grid-template-columns: 1fr;
    }
    
    .offers-grid {
        grid-template-columns: 1fr;
    }
    
    .filters-form {
        grid-template-columns: 1fr;
    }
    
    .detail-header {
        flex-direction: column;
    }
    
    .header-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* Status Card */
.status-card {
    background: rgba(30, 41, 59, 0.7);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1rem;
    padding: 1.5rem;
    margin-bottom: 2rem;
    animation: fadeIn 0.5s ease-out;
}

.status-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    color: var(--text-primary);
}

.status-title {
    font-weight: 600;
    color: var(--secondary);
}

.progress-bar-container {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar {
    height: 100%;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    transition: width 0.3s ease;
}

.status-details {
    margin-top: 0.5rem;
    text-align: right;
    font-size: 0.875rem;
    color: #94a3b8;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(-10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Checkbox Style */
.checkbox-group {
    display: flex;
    align-items: center;
    padding-top: 1.5rem;
}

.checkbox-label {
    display: flex;
    align-items: center;
    cursor: pointer;
    gap: 0.5rem;
    user-select: none;
}

.checkbox-label input[type="checkbox"] {
    width: 1.2rem;
    height: 1.2rem;
    cursor: pointer;
    accent-color: var(--primary);
}

/* Search Filter */
.filter-group.full-width {
    grid-column: 1 / -1;
}

.filter-group.full-width input {
    width: 100%;
}

/* Terms Table */
.terms-section {
    margin-top: 2rem;
}

.terms-table-container {
    overflow-x: auto;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.terms-table {
    width: 100%;
    border-collapse: collapse;
    color: var(--text-primary);
    font-size: 0.9rem;
}

.terms-table th, .terms-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.terms-table th {
    background: rgba(255, 255, 255, 0.05);
    font-weight: 600;
    color: var(--accent-color);
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
}

.terms-table tr {
    transition: all 0.2s ease;
    cursor: pointer;
}

.terms-table tr:hover {
    background: rgba(255, 255, 255, 0.08);
}

.terms-table tr.active {
    background: rgba(100, 108, 255, 0.15);
    border-left: 3px solid var(--accent-color);
}

.term-price {
    font-weight: 700;
    color: var(--accent-color);
}

.term-status {
    font-size: 0.75rem;
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    background: rgba(255, 255, 255, 0.1);
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.chart-title {
    font-size: 1rem;
    font-weight: 600;
}

.btn-reset-chart {
    font-size: 0.75rem;
    padding: 0.3rem 0.6rem;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: var(--text-secondary);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s;
}

.btn-reset-chart:hover {
    background: rgba(255, 255, 255, 0.2);
    color: var(--text-primary);
}

.terms-table tr.changed {
    background: rgba(16, 185, 129, 0.1);
    border-left: 4px solid var(--success);
}

.terms-table tr.changed:hover {
    background: rgba(16, 185, 129, 0.15);
}

.terms-table tr.changed td:last-child {
    color: var(--success);
    font-weight: 700;
}

.terms-table tr.changed td:last-child::after {
    content: " 📈";
    font-size: 0.8rem;
}

/* View Switcher Tabs */
.view-tabs {
    display: inline-flex;
    background: var(--bg-dark);
    padding: 0.25rem;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
}

.view-tab {
    padding: 0.5rem 1rem;
    border-radius: 0.25rem;
    border: none;
    background: transparent;
    color: var(--text-secondary);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: inherit;
    font-size: 0.9rem;
}

.view-tab:hover {
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.05);
}

.view-tab.active {
    background: var(--primary);
    color: white;
}

.view-tab .icon {
    font-size: 1rem;
}

/* ===== FAVORITES BUTTON ===== */
.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    font-size: 3rem;
    line-height: 1;
    transition: transform 0.2s ease, filter 0.2s ease;
    margin-left: auto;
}

.favorite-btn:hover {
    transform: scale(1.2);
    filter: drop-shadow(0 0 8px rgba(255, 215, 0, 0.6));
}

.favorite-btn .star {
    color: #FFD700; /* Gold */
    display: block;
}

.favorite-btn[data-is-favorite="0"] .star {
    color: #64748b; /* Gray when not favorite */
    opacity: 0.5;
}

.favorite-btn[data-is-favorite="1"] .star {
    color: #FFD700; /* Gold when favorite */
    opacity: 1;
    animation: pulse 0.3s ease;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

.offer-header {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
}

.favorite-btn-small {
    font-size: 2.5rem; /* Increased from 1.2rem for better visibility */
    padding: 0.4rem;
}

/* Green stars for terms */
.favorite-btn-small .star {
    color: #10b981; /* Green for terms */
}

.favorite-btn-small[data-is-favorite="0"] .star {
    color: #64748b; /* Gray when not favorite */
    opacity: 0.5;
}

.favorite-btn-small[data-is-favorite="1"] .star {
    color: #10b981; /* Green when favorite */
    opacity: 1;
}
