/* ============================================================
   TC CHANGE MODULE - VistaGamble MainApp
   Public T&C changes tracker - editorial design
   ============================================================ */

/* --- Hero / Page Header --- */
.tc-change-hero {
    background: linear-gradient(135deg, var(--bleachedcedar) 0%, var(--dark-light) 50%, var(--bleachedcedar) 100%);
    position: relative;
    overflow: hidden;
    padding: 3.5rem 0 3rem;
    margin-top: -1px;
}

.tc-change-hero::before {
    content: '';
    position: absolute;
    top: -40%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(254, 80, 1, 0.12) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.tc-change-hero::after {
    content: '';
    position: absolute;
    bottom: -30%;
    left: -5%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(254, 80, 1, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    pointer-events: none;
}

.tc-change-hero .hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(254, 80, 1, 0.15);
    color: var(--orange-light);
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 1px solid rgba(254, 80, 1, 0.25);
    margin-bottom: 1rem;
}

.tc-change-hero h1 {
    color: #fff;
    font-weight: 800;
    font-size: 2rem;
    margin-bottom: 0.5rem;
    line-height: 1.2;
}

.tc-change-hero .hero-subtitle {
    color: rgba(255, 255, 255, 0.65);
    font-size: 1.05rem;
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
}

/* --- Breadcrumb --- */
.tc-change-breadcrumb {
    padding: 1rem 0;
    background: var(--bg-light);
    border-bottom: 1px solid var(--border-color);
}

.tc-change-breadcrumb .breadcrumb {
    margin: 0;
    font-size: 0.875rem;
}

.tc-change-breadcrumb .breadcrumb-item a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.2s;
}

.tc-change-breadcrumb .breadcrumb-item a:hover {
    color: var(--orange);
}

.tc-change-breadcrumb .breadcrumb-item.active {
    color: var(--text-primary);
    font-weight: 600;
}

/* --- Live monitoring pulse (hero stats) --- */
.tc-live-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #34d399;
    box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.7);
    animation: tcPulse 2s infinite;
    display: inline-block;
    flex-shrink: 0;
}

@keyframes tcPulse {
    0% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0.6); }
    70% { box-shadow: 0 0 0 7px rgba(52, 211, 153, 0); }
    100% { box-shadow: 0 0 0 0 rgba(52, 211, 153, 0); }
}

/* --- Change Cards (Index listing) — light design ---
   White card, faint casino-logo watermark in the header, colored score
   chip + sentiment tag driven by the 7-bucket severity class. Fonts:
   Outfit (display) + Inter (body), both self-hosted site-wide. */
.vg-tc-section {
    --vg-card: #ffffff;
    --vg-line: rgba(40, 30, 50, .10);
    --vg-line-strong: rgba(40, 30, 50, .18);
    --vg-text: #281e32;
    --vg-text-dim: #6b5d78;
    --vg-text-faint: #9b8fa8;
    --vg-orange: #fe5001;
    --vg-orange-soft: #ff8f65;
    --vg-orange-deep: #e2530a;
    --vg-radius: 18px;
    padding: 2.5rem 1rem 3.5rem;
}

/* Severity → score chip + sentiment tag colors (warm scale, never a cold grey). */
.vg-card.severity-very-positive     { --vg-sev: #15803d; --vg-sev-bg: rgba(34, 197, 94, .14); }
.vg-card.severity-positive          { --vg-sev: #1ca57a; --vg-sev-bg: rgba(70, 214, 160, .16); }
.vg-card.severity-slightly-positive { --vg-sev: #1f9d57; --vg-sev-bg: rgba(70, 214, 160, .12); }
.vg-card.severity-neutral           { --vg-sev: #8a7e97; --vg-sev-bg: rgba(40, 30, 50, .07); }
.vg-card.severity-slightly-negative { --vg-sev: #d9760a; --vg-sev-bg: rgba(255, 176, 92, .16); }
.vg-card.severity-negative          { --vg-sev: #e2530a; --vg-sev-bg: rgba(254, 80, 1, .14); }
.vg-card.severity-very-negative     { --vg-sev: #d83545; --vg-sev-bg: rgba(255, 93, 108, .14); }

/* Legend */
.vg-tc-legend {
    max-width: 1180px;
    margin: 0 auto 1.75rem;
    display: flex;
    gap: 1.1rem;
    flex-wrap: wrap;
    align-items: center;
}

.vg-tc-legend span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: .8rem;
    color: var(--vg-text-dim);
    font-weight: 500;
}

.vg-tc-legend i {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    display: inline-block;
}

.vg-tc-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    gap: 22px;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
}

.vg-card {
    position: relative;
    display: flex;
    flex-direction: column;
    background: var(--vg-card);
    border: 1px solid var(--vg-line);
    border-radius: var(--vg-radius);
    text-decoration: none;
    color: inherit;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(40, 30, 50, .04);
    transition: transform .28s cubic-bezier(.2, .7, .3, 1), border-color .28s, box-shadow .28s;
    opacity: 0;
    transform: translateY(14px);
    animation: vgCardIn .55s forwards cubic-bezier(.2, .7, .3, 1);
}

@keyframes vgCardIn {
    to { opacity: 1; transform: translateY(0); }
}

.vg-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto 0;
    height: 3px;
    background: linear-gradient(90deg, var(--vg-orange), var(--vg-orange-soft));
    z-index: 3;
}

.vg-card:hover {
    transform: translateY(-6px);
    border-color: rgba(254, 80, 1, .4);
    box-shadow: 0 22px 44px -22px rgba(40, 30, 50, .32), 0 0 0 1px rgba(254, 80, 1, .18);
    color: inherit;
}

/* --- Header: light, with a faint casino-logo watermark --- */
.vg-card__top {
    position: relative;
    padding: 20px 20px 16px;
    overflow: hidden;
}

/* casino logo, very faint, behind the header content */
.vg-card__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: .10;
    filter: saturate(1.1);
    transition: opacity .3s, transform .5s;
}

.vg-card:hover .vg-card__bg {
    opacity: .16;
    transform: scale(1.06);
}

/* white fade so the watermark never fights the text */
.vg-card__top::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .45), var(--vg-card) 94%);
}

.vg-card__topinner {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    gap: 13px;
}

.vg-logo {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 13px;
    object-fit: contain;
    padding: 4px;
    background: #fff;
    border: 1px solid var(--vg-line-strong);
    box-shadow: 0 4px 12px -5px rgba(40, 30, 50, .35);
}

.vg-logo--mono {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background: linear-gradient(140deg, var(--vg-orange), var(--vg-orange-deep));
    color: #fff;
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 24px;
    border: none;
}

.vg-brand {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.vg-brand__name {
    font-family: 'Outfit', sans-serif;
    font-weight: 600;
    font-size: 17px;
    line-height: 1.2;
    color: var(--vg-text);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vg-brand__type {
    margin-top: 5px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    text-transform: uppercase;
    color: var(--vg-text-faint);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
}

.vg-brand__type span {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.vg-brand__type i {
    color: var(--vg-orange-deep);
    font-size: 11px;
    flex-shrink: 0;
}

/* Score chip — colored number + SCORE label, tinted by severity */
.vg-score {
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    text-align: center;
    padding: 8px 12px;
    border-radius: 13px;
    min-width: 58px;
    color: var(--vg-sev);
    background: var(--vg-sev-bg);
    border: 1px solid currentColor;
}

.vg-score__num {
    font-family: 'Outfit', sans-serif;
    font-weight: 700;
    font-size: 21px;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.vg-score__lbl {
    display: block;
    margin-top: 4px;
    font-size: 9.5px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    opacity: .95;
}

/* --- Body: clean white --- */
.vg-card__body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.vg-sev-tag {
    align-self: flex-start;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: 5px 11px;
    border-radius: 999px;
    margin-bottom: 13px;
    color: var(--vg-sev);
    background: var(--vg-sev-bg);
}

.vg-summary {
    font-size: 14px;
    line-height: 1.6;
    color: var(--vg-text-dim);
    margin: 0 0 18px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.vg-summary strong {
    color: var(--vg-text);
    font-weight: 600;
}

.vg-card__foot {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding-top: 14px;
    border-top: 1px solid var(--vg-line);
}

.vg-cat {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 12px;
    font-weight: 600;
    color: var(--vg-orange-deep);
    background: rgba(254, 80, 1, .09);
    padding: 5px 11px;
    border-radius: 8px;
    white-space: nowrap;
}

.vg-date {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--vg-text-faint);
    font-weight: 500;
    white-space: nowrap;
}

/* Hover affordance — arrow appears on hover */
.vg-arrow {
    position: absolute;
    right: 18px;
    bottom: 18px;
    z-index: 3;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--vg-orange);
    color: #fff;
    font-size: 14px;
    box-shadow: 0 6px 14px -4px rgba(254, 80, 1, .6);
    opacity: 0;
    transform: translateX(-6px) scale(.85);
    transition: opacity .28s, transform .28s;
    pointer-events: none;
}

.vg-card:hover .vg-arrow {
    opacity: 1;
    transform: translateX(0) scale(1);
}

@media (max-width: 575.98px) {
    .vg-tc-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Severity Badges --- */
.severity-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.severity-very-positive { background: #d4edda; color: #155724; }
.severity-positive { background: #d1ecf1; color: #0c5460; }
.severity-slightly-positive { background: #e8f5e9; color: #2e7d32; }
.severity-neutral { background: #e2e3e5; color: #383d41; }
.severity-slightly-negative { background: #fff3cd; color: #856404; }
.severity-negative { background: #ffecd2; color: #8a5a00; }
.severity-very-negative { background: #f8d7da; color: #721c24; }

/* Category badge (reuse from complaint pattern) */
.tc-change-category-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3px;
    white-space: nowrap;
    background: var(--bg-light);
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
}

/* Large severity badge for detail sidebar */
.severity-badge-lg {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 10px 24px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* --- Detail Page --- */
.tc-change-detail-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.tc-change-detail-id {
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.detail-card {
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.detail-card-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.detail-card-header h2 {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.detail-card-body {
    padding: 1.5rem;
}

.detail-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.detail-info-item {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.detail-info-label {
    font-size: 0.775rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
}

.detail-info-value {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.95rem;
}

.detail-info-value a {
    color: var(--orange);
    text-decoration: none;
    font-weight: 700;
    transition: color 0.2s;
}

.detail-info-value a:hover {
    color: var(--primary-dark);
}

.detail-summary {
    margin-top: 1.25rem;
    padding-top: 1.25rem;
    border-top: 1px solid var(--border-color);
}

.detail-summary-label {
    font-size: 0.775rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-light);
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.detail-summary p {
    color: var(--text-primary);
    line-height: 1.7;
    margin: 0;
}

/* --- Detailed Explanation --- */
.detail-explanation p {
    color: var(--text-primary);
    font-size: 0.95rem;
    line-height: 1.8;
    margin-bottom: 1rem;
}

.detail-explanation p:last-child {
    margin-bottom: 0;
}

/* --- Before/After Panels --- */
.before-after-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

.before-panel,
.after-panel {
    padding: 1.25rem;
    min-height: 120px;
}

.before-panel {
    background: #fef2f2;
    border-right: 1px solid var(--border-color);
}

.after-panel {
    background: #f0fdf4;
}

.before-panel-label,
.after-panel-label {
    font-size: 0.775rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 700;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

.before-panel-label {
    color: #991b1b;
}

.after-panel-label {
    color: #166534;
}

.before-panel p,
.after-panel p {
    margin: 0;
    line-height: 1.7;
    font-size: 0.925rem;
    color: var(--text-primary);
    white-space: pre-wrap;
    word-break: break-word;
}

/* --- Prose Diff (collapsible, highlighted word-level comparison) --- */
.prose-diff-toggle {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 1.1rem 1.5rem;
    background: var(--bg-light);
    border: none;
    border-bottom: 1px solid var(--border-color);
    cursor: pointer;
    font-size: 0.925rem;
    font-weight: 600;
    color: var(--text-secondary);
    transition: background 0.2s, color 0.2s;
    text-align: left;
}

.prose-diff-toggle:hover {
    background: var(--orange-lighter);
    color: var(--orange);
}

.prose-diff-toggle-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--border-color);
    color: var(--text-light);
    font-size: 0.7rem;
    transition: transform 0.3s, background 0.2s, color 0.2s;
    flex-shrink: 0;
}

.prose-diff-toggle:hover .prose-diff-toggle-icon {
    background: var(--orange);
    color: #fff;
}

.prose-diff-toggle.open .prose-diff-toggle-icon {
    transform: rotate(90deg);
    background: var(--orange);
    color: #fff;
}

.prose-diff-collapse {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease;
}

.prose-diff-collapse.open {
    max-height: 4000px;
}

.prose-diff-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-light);
    font-size: 0.925rem;
}

.prose-diff-stats {
    display: flex;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--border-color);
    font-size: 0.85rem;
    font-weight: 600;
}

.prose-diff-stat-added {
    color: #166534;
}

.prose-diff-stat-removed {
    color: #991b1b;
}

.prose-diff {
    font-size: 0.95rem;
    line-height: 1.8;
    color: var(--text-primary);
    word-break: break-word;
    max-height: 600px;
    overflow-y: auto;
    padding-right: 0.5rem;
}

.prose-diff ins.prose-diff-added {
    background: #d4edda;
    color: #155724;
    text-decoration: none;
    padding: 1px 3px;
    border-radius: 3px;
    font-weight: 600;
}

.prose-diff del.prose-diff-removed {
    background: #f8d7da;
    color: #721c24;
    text-decoration: line-through;
    padding: 1px 3px;
    border-radius: 3px;
    opacity: 0.85;
}

/* --- Sidebar Status Card --- */
.status-card {
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.status-card-header {
    padding: 1.25rem 1.5rem;
    background: linear-gradient(135deg, var(--bleachedcedar), var(--dark-light));
    text-align: center;
}

.status-card-body {
    padding: 1.25rem 1.5rem;
}

.status-detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.625rem 0;
    border-bottom: 1px solid var(--border-color);
}

.status-detail-row:last-child {
    border-bottom: none;
}

.status-detail-label {
    font-size: 0.825rem;
    color: var(--text-light);
    font-weight: 500;
}

.status-detail-value {
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.875rem;
}

/* --- Evidence Downloads Card --- */
.evidence-card {
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.evidence-card-header {
    padding: 1rem 1.25rem;
    border-bottom: 1px solid var(--border-color);
}

.evidence-card-header h3 {
    font-size: 0.95rem;
    font-weight: 700;
    color: var(--primary-dark);
    margin: 0;
}

.evidence-card-body {
    padding: 1rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.btn-evidence-download {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.625rem 1rem;
    border-radius: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    border: none;
    box-shadow: 0 2px 8px rgba(254, 80, 1, 0.25);
}

.btn-evidence-download:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(254, 80, 1, 0.35);
    color: #fff;
}

.btn-evidence-download.btn-evidence-secondary {
    background: #fff;
    color: var(--text-secondary);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
}

.btn-evidence-download.btn-evidence-secondary:hover {
    background: var(--orange-lighter);
    border-color: rgba(254, 80, 1, 0.3);
    color: var(--orange);
    box-shadow: var(--shadow-sm);
}

/* --- Pagination --- */
.tc-change-pagination .pagination {
    gap: 4px;
}

.tc-change-pagination .page-link {
    border-radius: 8px;
    border: 1px solid var(--border-color);
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.875rem;
    padding: 0.5rem 0.875rem;
    transition: var(--transition);
}

.tc-change-pagination .page-link:hover {
    background: var(--orange-lighter);
    border-color: rgba(254, 80, 1, 0.3);
    color: var(--orange);
}

.tc-change-pagination .page-item.active .page-link {
    background: var(--orange);
    border-color: var(--orange);
    color: #fff;
    box-shadow: 0 2px 8px rgba(254, 80, 1, 0.3);
}

.tc-change-pagination .page-item.disabled .page-link {
    background: var(--bg-light);
    color: var(--text-light);
}

/* --- Empty State --- */
.tc-change-empty {
    text-align: center;
    padding: 4rem 2rem;
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
}

.tc-change-empty-icon {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.25rem;
    color: var(--text-light);
    font-size: 1.5rem;
}

.tc-change-empty h3 {
    font-weight: 700;
    color: var(--primary-dark);
    margin-bottom: 0.5rem;
    font-size: 1.15rem;
}

.tc-change-empty p {
    color: var(--text-secondary);
    margin-bottom: 0;
    font-size: 0.95rem;
}

/* --- Back Button --- */
.btn-back {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 0.5rem 1.25rem;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
}

.btn-back:hover {
    background: var(--bg-light);
    color: var(--primary-dark);
    border-color: #ced4da;
}

/* --- Responsive --- */
@media (max-width: 991.98px) {
    .tc-change-hero h1 {
        font-size: 1.6rem;
    }

    .detail-info-grid {
        grid-template-columns: 1fr;
    }

    .before-after-container {
        grid-template-columns: 1fr;
    }

    .before-panel {
        border-right: none;
        border-bottom: 1px solid var(--border-color);
    }
}

@media (max-width: 767.98px) {
    .tc-change-hero {
        padding: 2.5rem 0 2rem;
    }

    .tc-change-hero h1 {
        font-size: 1.4rem;
    }

    .detail-card-body {
        padding: 1.25rem;
    }

    .vg-card__top {
        padding: 16px 16px 14px;
    }

    .vg-card__body {
        padding: 14px 16px 16px;
    }
}

/* ============================================================
   TIMELINE LAYOUT - ByCasino page
   Vertical timeline with severity-coded markers
   ============================================================ */

/* --- Hero stats bar --- */
.tl-hero-stats {
    display: flex;
    gap: 1.25rem;
    margin-top: 1.25rem;
}

.tl-hero-stat {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.875rem;
    font-weight: 500;
}

.tl-hero-stat i {
    color: var(--orange);
    font-size: 0.8rem;
}

/* --- Timeline container --- */
.tl-timeline {
    position: relative;
    padding-left: 120px;
}

/* Vertical line */
.tl-line {
    position: absolute;
    left: 100px;
    top: 0;
    bottom: 0;
    width: 2px;
    background: linear-gradient(180deg, var(--orange) 0%, var(--border-color) 30%, var(--border-color) 70%, transparent 100%);
}

/* --- Single entry --- */
.tl-entry {
    position: relative;
    display: flex;
    align-items: flex-start;
    margin-bottom: 2rem;
    animation: tlSlideIn 0.5s ease both;
}

@keyframes tlSlideIn {
    from {
        opacity: 0;
        transform: translateY(16px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tl-entry:last-child {
    margin-bottom: 0;
}

/* --- Date marker (left side) --- */
.tl-marker {
    position: absolute;
    left: -120px;
    width: 100px;
    display: flex;
    align-items: center;
    gap: 20px;
    padding-top: 1.25rem;
}

.tl-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
    flex: 1;
}

.tl-date-day {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary-dark);
    letter-spacing: -0.5px;
}

.tl-date-month {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 2px;
}

.tl-date-year {
    font-size: 0.7rem;
    font-weight: 500;
    color: var(--text-light);
    margin-top: 2px;
}

/* --- Dot on the line --- */
.tl-dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    border: 3px solid #fff;
    box-shadow: 0 0 0 2px var(--border-color), var(--shadow-sm);
    flex-shrink: 0;
    position: relative;
    z-index: 2;
    transition: transform 0.3s, box-shadow 0.3s;
}

.tl-entry:hover .tl-dot {
    transform: scale(1.3);
}

/* Dot severity colors */
.tl-dot.severity-very-positive { background: #28a745; box-shadow: 0 0 0 2px #28a745, 0 0 8px rgba(40, 167, 69, 0.25); }
.tl-dot.severity-positive { background: #17a2b8; box-shadow: 0 0 0 2px #17a2b8, 0 0 8px rgba(23, 162, 184, 0.25); }
.tl-dot.severity-slightly-positive { background: #66bb6a; box-shadow: 0 0 0 2px #66bb6a, 0 0 8px rgba(102, 187, 106, 0.25); }
.tl-dot.severity-neutral { background: #6c757d; box-shadow: 0 0 0 2px #6c757d, 0 0 8px rgba(108, 117, 125, 0.2); }
.tl-dot.severity-slightly-negative { background: #ffc107; box-shadow: 0 0 0 2px #ffc107, 0 0 8px rgba(255, 193, 7, 0.3); }
.tl-dot.severity-negative { background: #fd7e14; box-shadow: 0 0 0 2px #fd7e14, 0 0 8px rgba(253, 126, 20, 0.3); }
.tl-dot.severity-very-negative { background: #dc3545; box-shadow: 0 0 0 2px #dc3545, 0 0 8px rgba(220, 53, 69, 0.3); }

/* --- Card content (right side) --- */
.tl-content {
    flex: 1;
    min-width: 0;
}

.tl-card {
    background: #fff;
    border-radius: var(--border-radius);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: var(--transition);
    border-left: 4px solid transparent;
}

.tl-card:hover {
    box-shadow: var(--shadow-md);
    transform: translateX(4px);
}

/* Severity-colored left border */
.tl-card.severity-very-positive { border-left-color: #28a745; }
.tl-card.severity-positive { border-left-color: #17a2b8; }
.tl-card.severity-slightly-positive { border-left-color: #66bb6a; }
.tl-card.severity-neutral { border-left-color: #6c757d; }
.tl-card.severity-slightly-negative { border-left-color: #ffc107; }
.tl-card.severity-negative { border-left-color: #fd7e14; }
.tl-card.severity-very-negative { border-left-color: #dc3545; }

/* --- Card top: badges + score --- */
.tl-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.25rem 1.5rem 0;
    gap: 0.75rem;
}

.tl-card-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

/* Score pill */
.tl-score {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 32px;
    padding: 0 10px;
    border-radius: 8px;
    font-size: 0.85rem;
    font-weight: 800;
    letter-spacing: -0.3px;
    flex-shrink: 0;
    font-variant-numeric: tabular-nums;
}

/* --- Summary --- */
.tl-card-summary {
    padding: 0.75rem 1.5rem 0;
    margin: 0;
    color: var(--text-primary);
    font-size: 0.925rem;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Clause preview (before/after excerpts) --- */
.tl-clause-preview {
    margin: 1rem 1.5rem 0;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    overflow: hidden;
}

.tl-clause {
    display: flex;
    gap: 10px;
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
    line-height: 1.55;
    align-items: baseline;
}

.tl-clause + .tl-clause {
    border-top: 1px solid var(--border-color);
}

.tl-clause-before {
    background: #fef8f6;
}

.tl-clause-after {
    background: #f5fbf7;
}

.tl-clause-label {
    font-weight: 700;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.tl-clause-before .tl-clause-label {
    color: #991b1b;
}

.tl-clause-after .tl-clause-label {
    color: #166534;
}

.tl-clause-text {
    color: var(--text-secondary);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* --- Card footer --- */
.tl-card-footer {
    padding: 1rem 1.5rem;
    margin-top: 1rem;
    border-top: 1px solid var(--border-color);
    background: var(--bg-light);
}

.tl-btn-evidence {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 0.5rem 1.15rem;
    border-radius: 10px;
    font-size: 0.825rem;
    font-weight: 600;
    color: var(--text-secondary);
    background: #fff;
    border: 1px solid var(--border-color);
    text-decoration: none;
    transition: var(--transition);
}

.tl-btn-evidence:hover {
    background: linear-gradient(135deg, var(--orange), var(--orange-light));
    color: #fff;
    border-color: transparent;
    box-shadow: 0 3px 12px rgba(254, 80, 1, 0.25);
    transform: translateY(-1px);
}

/* --- Timeline Responsive --- */
@media (max-width: 991.98px) {
    .tl-timeline {
        padding-left: 40px;
    }

    .tl-line {
        left: 12px;
    }

    .tl-marker {
        left: -40px;
        width: auto;
        flex-direction: column-reverse;
        align-items: center;
        gap: 0;
    }

    .tl-date {
        display: none;
    }

    .tl-dot {
        width: 12px;
        height: 12px;
        border-width: 2px;
    }

    .tl-card-top {
        padding: 1rem 1.25rem 0;
        flex-wrap: wrap;
    }

    .tl-card-summary {
        padding: 0.75rem 1.25rem 0;
        font-size: 0.9rem;
    }

    .tl-clause-preview {
        margin: 0.75rem 1.25rem 0;
    }

    .tl-card-footer {
        padding: 0.875rem 1.25rem;
    }
}

@media (max-width: 767.98px) {
    .tl-timeline {
        padding-left: 28px;
    }

    .tl-line {
        left: 7px;
    }

    .tl-marker {
        left: -28px;
    }

    .tl-entry {
        margin-bottom: 1.25rem;
    }

    .tl-card-badges {
        gap: 4px;
    }

    .tl-score {
        min-width: 32px;
        height: 28px;
        font-size: 0.78rem;
    }

    .tl-clause {
        flex-direction: column;
        gap: 4px;
    }

    .tl-card-footer {
        padding: 0.75rem 1rem;
    }

    .tl-btn-evidence {
        font-size: 0.8rem;
        width: 100%;
        justify-content: center;
    }
}


/* ===== Casino-review page: Terms & Conditions Changes section (rvt-*) =====
   Light section following the dark complaints panel (alternating rhythm).
   .vg-card colors are driven by custom props declared on .vg-tc-section on the
   listing page; the review page hosts the cards outside that wrapper, so the
   same props are re-declared here. */
.rvt-section {
    --vg-card: #ffffff;
    --vg-line: rgba(40, 30, 50, .10);
    --vg-line-strong: rgba(40, 30, 50, .18);
    --vg-text: #281e32;
    --vg-text-dim: #6b5d78;
    --vg-text-faint: #9b8fa8;
    --vg-orange: #fe5001;
    --vg-orange-soft: #ff8f65;
    --vg-orange-deep: #e2530a;
    --vg-radius: 18px;
    padding: 0 0 32px;
    scroll-margin-top: 90px;
}
.rvt-title { display: flex; align-items: center; gap: 10px; font-size: 21px; font-weight: 800; color: #1d1726; letter-spacing: -.01em; margin: 0; }
.rvt-title-icon { width: 24px; height: 24px; color: #fe5001; flex-shrink: 0; }
.rvt-sub { font-size: 13.5px; color: #8a7f96; max-width: 78ch; margin: 4px 0 20px; }

/* auto-fit stretches the up-to-3 cards across the review page's wide container */
/* Fixed 4-up row on desktop (mirrors the complaints grid rhythm: up to 4 cards,
   ghost tile fills the gap); fixed tracks (not auto-fit) so 1–2 cards stay
   card-sized instead of stretching across the full panel width */
.rvt-grid { max-width: none; margin: 0; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1199.98px) {
    .rvt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 575.98px) {
    .rvt-grid { grid-template-columns: 1fr; }
}

.rvt-seeall { text-align: center; margin-top: 20px; }
.rvt-btn-outline {
    display: inline-flex; align-items: center; justify-content: center; gap: 8px;
    font: inherit; font-weight: 700; font-size: 14px; padding: 12px 28px;
    border-radius: 12px; border: 1.5px solid #ecebef; background: #fff; color: #4b4458;
    text-decoration: none; transition: border-color .2s, color .2s, background .2s;
}
.rvt-btn-outline:hover { border-color: rgba(254,80,1,.35); background: #fff5f0; color: #fe5001; }

/* Monitored-but-no-changes trust state */
.rvt-empty {
    text-align: center; padding: 34px 24px;
    border: 1px dashed #dcd6e4; border-radius: 16px; background: #fbfafc;
}
.rvt-empty-shield {
    width: 44px; height: 44px; border-radius: 50%; margin: 0 auto 12px;
    display: flex; align-items: center; justify-content: center;
    background: #e8f7ef; color: #15a35b;
}
.rvt-empty h3 { color: #1d1726; font-size: 16px; font-weight: 800; margin: 0 0 4px; }
.rvt-empty p { font-size: 13.5px; color: #8a7f96; max-width: 52ch; margin: 0 auto; }
.rvt-hub-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 14px; font-size: 13px; font-weight: 700; color: #fe5001; text-decoration: none; }
.rvt-hub-link:hover { text-decoration: underline; }
/* "Being added to the tracker" variant — orange clock instead of the green shield */
.rvt-empty-progress { background: rgba(254, 80, 1, .1); color: #fe5001; }

/* ByCasino hero: actions row + ghost review button (mirrors the complaint hero;
   scoped to the tc hero so it can't collide with complaint.css on shared pages) */
.tc-change-hero .hero-actions {
    display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin-top: 1.5rem;
}
.tc-change-hero .btn-hero-ghost {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 0.75rem 1.5rem; border-radius: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    background: rgba(255, 255, 255, 0.06);
    color: #fff; font-weight: 700; font-size: 0.925rem;
    text-decoration: none;
    transition: border-color .2s, background .2s, transform .2s;
}
.tc-change-hero .btn-hero-ghost i { color: #ff8c3a; }
.tc-change-hero .btn-hero-ghost:hover {
    border-color: rgba(254, 80, 1, 0.6);
    background: rgba(254, 80, 1, 0.12);
    color: #fff; transform: translateY(-2px);
}

/* ByCasino: back link aligned to the card grid inside the full-bleed section */
.vg-tc-back { max-width: 1180px; margin: 1.75rem auto 0; }

/* ===== Review-page terms section: light twin of the dark complaints panel =====
   Same 22px geometry + diagonal-stripe signature as .rvc-panel, inverted to light
   so the two sections read as a deliberate pair (dark case file / light ledger). */
.rvt-panel {
    position: relative;
    overflow: hidden;
    background: #fbfafc;
    border: 1px solid #ecebef;
    border-radius: 22px;
    padding: 30px 30px 28px;
}
.rvt-panel::before {
    /* signature diagonal stripe, top-right, behind the content */
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    background: linear-gradient(115deg, transparent 80%, rgba(254, 80, 1, .9) 80%, rgba(254, 80, 1, .9) 85%, transparent 85%);
    opacity: .12;
}
.rvt-panel::after {
    content: "";
    position: absolute;
    top: -140px;
    right: -100px;
    width: 360px;
    height: 360px;
    background: radial-gradient(circle, rgba(254, 80, 1, .10), transparent 70%);
    pointer-events: none;
}

/* Stat chips (mirror .rvc-stats, light variant on the light panel) */
.rvt-stats { display: flex; gap: 12px; flex-wrap: wrap; margin: 18px 0 20px; }
.rvt-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    border: 1px solid #ecebef;
    border-radius: 12px;
    background: #fff;
    padding: 10px 18px 10px 14px;
}
.rvt-stat b { font-size: 20px; font-weight: 800; color: #1d1726; font-variant-numeric: tabular-nums; }
.rvt-stat-label { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a7f96; }

/* Inside the panel: cards get a touch more lift, empty boxes go white so they
   don't merge with the near-identical panel background */
.rvt-panel .vg-card { box-shadow: 0 6px 18px -8px rgba(40, 30, 50, .18); }
.rvt-panel .rvt-empty { background: #fff; }

@media (max-width: 680px) {
    .rvt-panel { padding: 22px 16px 20px; border-radius: 18px; }
}

/* Ghost "watching" tile — fills the next empty grid track when a casino has
   fewer than 3 change cards (same dashed ghost vocabulary as the complaints
   submit tile). Hidden once the row is full; gated on active monitoring. */
.rvt-watch-tile {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    padding: 24px 20px;
    border: 1.5px dashed #dcd6e4;
    border-radius: 18px;
    background: #fff;
}
.rvt-watch-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    margin-bottom: 2px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8f7ef;
    color: #15a35b;
}
.rvt-watch-icon svg { width: 28px; height: 28px; }
.rvt-watch-live {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin: 0;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: #15a35b;
}
.rvt-watch-title { margin: 0; font-size: 15px; font-weight: 800; color: #1d1726; line-height: 1.35; }
.rvt-watch-text { margin: 0; font-size: 12.5px; line-height: 1.5; color: #8a7f96; max-width: 30ch; }