body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: #0a0a0a;
    margin: 0;
    padding: 0;
    overflow-x: hidden;
}

.navbar {
    box-shadow: 0 2px 4px rgba(0,0,0,.1);
    background-color: #1a1a1a !important;
    border-bottom: 1px solid #333;
}

.hero-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    margin: 20px 0;
    box-shadow: 0 10px 30px rgba(0,0,0,.2);
}

.hero-section h1 {
    font-weight: 700;
    text-shadow: 2px 2px 4px rgba(0,0,0,.3);
}

.hero-section .lead {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.9;
}

.container {
    max-width: 1200px;
}

/* Full-screen Trading Dashboard */
.trading-dashboard {
    height: 100vh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, #0f1116 0%, #0a0a0a 100%);
}

.chart-header {
    padding: 1rem 1.5rem;
    background: rgba(31, 38, 48, 0.95);
    border-bottom: 1px solid #1f2630;
    backdrop-filter: blur(10px);
    z-index: 100;
}

.chart-header h2 {
    color: #e6edf3;
    font-weight: 600;
    font-size: 1.5rem;
}

.chart-container {
    flex: 1;
    position: relative;
    overflow: hidden;
}

.trading-chart-fullscreen {
    width: 100%;
    height: 100%;
    background: #0f1116;
}

/* removed chart-stack-card wrapper; restored baseline layout */

/* Enhanced Dark Theme */
.chart-card-dark {
    background: linear-gradient(180deg, #111318 0%, #0f1116 100%);
    border: 1px solid #1f2630;
    color: #cfd7e3;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.chart-card-dark .card-header {
    background: rgba(31, 38, 48, 0.9);
    border-bottom: 1px solid #1f2630;
    color: #e6edf3;
    backdrop-filter: blur(10px);
}

.chart-card-dark .card-body {
    background: #0f1116;
}

/* Data Card Styling */
.data-card {
    background: rgba(31, 38, 48, 0.95);
    border: 1px solid #1f2630;
    border-radius: 8px;
    margin: 0 1rem 1rem 1rem;
}

.data-card .card-header {
    background: rgba(31, 38, 48, 0.9);
    border-bottom: 1px solid #1f2630;
    color: #e6edf3;
}

/* Table polish */
.table-hover tbody tr:hover {
    background-color: rgba(31, 38, 48, 0.6);
}

.table thead th {
    border-bottom: 2px solid #364152;
    color: #e6edf3;
    font-weight: 600;
}

.table tbody td {
    color: #cfd7e3;
    border-color: #1f2630;
}

/* Button enhancements */
.btn-outline-secondary {
    border-color: #364152;
    color: #364152;
    background: rgba(54, 65, 82, 0.1);
    backdrop-filter: blur(10px);
}

.btn-outline-secondary:hover {
    background-color: #364152;
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(54, 65, 82, 0.3);
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(102, 126, 234, 0.4);
}

.btn-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
    border: none;
    transition: all 0.3s ease;
}

.btn-info:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(23, 162, 184, 0.4);
}

/* Form controls */
.form-check-input:checked {
    background-color: #667eea;
    border-color: #667eea;
}

.form-check-label {
    color: #e6edf3;
}

/* Text colors */
.text-muted {
    color: #8b949e !important;
}

.text-info {
    color: #79c0ff !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .chart-header {
        padding: 0.75rem 1rem;
    }

    .chart-header h2 {
        font-size: 1.25rem;
    }

    .data-card {
        margin: 0 0.5rem 0.5rem 0.5rem;
    }
}

/* Breadcrumb navigation styling */
.navbar .navbar-text.text-muted {
    font-weight: 500;
    opacity: 0.7;
    user-select: none;
}

.navbar .nav-link.disabled {
    opacity: 0.8;
    cursor: default;
    background: rgba(102, 126, 234, 0.1);
    border-radius: 4px;
}
.ml-group-section {
    border: 1px solid #364152;
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.75rem;
    background: rgba(31, 38, 48, 0.3);
    backdrop-filter: blur(5px);
}

.ml-group-title {
    color: #e6edf3;
    font-weight: 600;
    margin-bottom: 0.5rem;
    border-bottom: 1px solid #1f2630;
    padding-bottom: 0.25rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 0.75rem;
}

.ml-group-title small {
    font-size: 0.65rem;
    opacity: 0.7;
}

.ml-group-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 0.2rem;
    margin: 0;
}

/* Enhanced indicator tile styling for ML groups */
.ml-group-grid .indicator-tile {
    transition: all 0.2s ease;
}

.ml-group-grid .indicator-tile:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.15);
}

/* Ultra-compact ML indicator items */
.ml-group-grid .indicator-item {
    height: 45px !important;
    background: rgba(42, 42, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
}

.ml-group-grid .indicator-item:hover {
    border-color: rgba(102, 126, 234, 0.25);
    background: rgba(42, 42, 42, 0.7);
}

.ml-group-grid .indicator-item .card-body {
    padding: 0.25rem !important;
    gap: 0.25rem;
}

.ml-group-grid .indicator-title {
    font-size: 0.65rem;
    line-height: 1.1;
}

.ml-group-grid .indicator-meta {
    font-size: 0.6rem;
    margin-top: 0.1rem;
}

.ml-group-grid .indicator-type {
    font-size: 0.55rem;
    padding: 0.1rem 0.2rem;
}

.ml-group-grid .indicator-checkbox {
    transform: scale(0.7);
}

/* Compact Modal Styling for Professional Trading Dashboard */
.modal-compact .modal-dialog {
    max-width: 900px;
    margin: 2rem auto;
}

.modal-compact .modal-content {
    background: linear-gradient(180deg, #111318 0%, #0f1116 100%);
    border: 1px solid #1f2630;
    border-radius: 8px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
    max-height: 95vh;
    overflow: hidden;
}

.modal-compact .modal-header {
    background: rgba(31, 38, 48, 0.95);
    border-bottom: 1px solid #1f2630;
    padding: 1rem 1.5rem;
    border-radius: 8px 8px 0 0;
}

.modal-compact .modal-header .modal-title {
    color: #e6edf3;
    font-weight: 600;
    font-size: 1.1rem;
}

.modal-compact .modal-body {
    padding: 1rem 1.5rem;
    max-height: calc(95vh - 140px); /* Account for header and footer */
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.modal-compact .modal-footer {
    background: rgba(31, 38, 48, 0.95);
    border-top: 1px solid #1f2630;
    padding: 1rem 1.5rem;
    border-radius: 0 0 8px 8px;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.indicator-active-summary {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    justify-content: space-between;
    background: rgba(17, 19, 24, 0.85);
    border: 1px solid rgba(102, 126, 234, 0.25);
    border-radius: 6px;
    padding: 0.5rem 0.75rem;
    margin-bottom: 0.75rem;
    gap: 0.75rem;
}

.indicator-active-summary .summary-count-group {
    display: flex;
    align-items: baseline;
    gap: 0.35rem;
}

.indicator-active-summary .summary-count {
    font-size: 1.4rem;
    font-weight: 600;
    color: #7dd3fc;
    margin-right: 0.25rem;
}

.indicator-active-summary .summary-label {
    font-size: 0.85rem;
    color: #d1d4dc;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.indicator-active-summary .summary-meta {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    flex-wrap: wrap;
}

.indicator-active-summary .summary-chip {
    padding: 0.1rem 0.45rem;
    border-radius: 999px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 1px solid rgba(125, 211, 252, 0.35);
    color: #c8d4f0;
    background: rgba(125, 211, 252, 0.08);
}

.indicator-active-summary .summary-hint {
    font-size: 0.8rem;
    color: #9ba7c0;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

/* Compact indicator modal specific styles */
.indicator-search-container {
    margin-bottom: 1rem;
}

.indicator-search-container .input-group-text {
    background: rgba(54, 65, 82, 0.8);
    border-color: #364152;
    color: #e6edf3;
}

.indicator-search-container .form-control {
    background: rgba(15, 17, 22, 0.8);
    border-color: #364152;
    color: #e6edf3;
}

.indicator-search-container .form-control:focus {
    background: rgba(15, 17, 22, 0.9);
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Tab styling */
.indicator-tabs-container {
    margin-bottom: 1rem;
}

.indicator-tabs-row {
    display: flex;
    gap: 0.25rem;
    margin-bottom: 0.5rem;
}

.indicator-tab {
    background: rgba(54, 65, 82, 0.3);
    border: 1px solid #364152;
    color: #cfd7e3;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
    text-align: center;
}

.indicator-tab:hover {
    background: rgba(54, 65, 82, 0.5);
    border-color: #667eea;
}

.indicator-tab.active {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-color: #667eea;
    color: white;
    box-shadow: 0 2px 4px rgba(102, 126, 234, 0.3);
}

/* Tab content */
.indicator-tab-content {
    min-height: 400px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.indicator-tab-pane {
    display: none;
}

.indicator-tab-pane.active {
    display: block;
}

/* Active indicators styling */
.active-indicators-container {
    background: rgba(31, 38, 48, 0.3);
    border-radius: 6px;
    padding: 1rem;
}

.active-indicators-header {
    background: rgba(54, 65, 82, 0.5);
    padding: 0.75rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.active-indicators-header strong {
    color: #e6edf3;
    font-size: 0.9rem;
}

.active-indicator-item {
    background: rgba(42, 42, 42, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.06);
    border-radius: 4px;
    padding: 0.75rem;
    margin-bottom: 0.5rem;
    transition: all 0.2s ease;
}

.active-indicator-item:hover {
    border-color: rgba(102, 126, 234, 0.25);
    background: rgba(42, 42, 42, 0.7);
}

.active-indicator-item .indicator-title {
    color: #e6edf3;
    font-weight: 500;
    font-size: 0.9rem;
}

.active-indicator-item .timeframe-select {
    background: rgba(15, 17, 22, 0.8);
    border: 1px solid #364152;
    color: #e6edf3;
    font-size: 0.8rem;
    padding: 0.25rem 0.5rem;
}

.active-indicator-item .timeframe-select:focus {
    background: rgba(15, 17, 22, 0.9);
    border-color: #667eea;
    box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
}

/* Add indicators tab styling */
.add-indicators-container {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.add-indicators-container .row {
    flex: 1;
    min-height: 0;
}

.add-indicators-container .card {
    background: rgba(31, 38, 48, 0.5);
    border: 1px solid #1f2630;
    border-radius: 6px;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.add-indicators-container .card-header {
    background: rgba(54, 65, 82, 0.8);
    border-bottom: 1px solid #1f2630;
    color: #e6edf3;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 0.75rem 1rem;
    flex-shrink: 0;
}

.add-indicators-container .card-body {
    background: rgba(15, 17, 22, 0.5);
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    min-height: 0;
}

/* Tree styling */
.indicator-tree {
    background: rgba(15, 17, 22, 0.3);
    border-radius: 4px;
    padding: 0.5rem;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tree-category {
    margin-bottom: 0.25rem;
}

.tree-category-header {
    display: flex;
    align-items: center;
    padding: 0.5rem;
    background: rgba(54, 65, 82, 0.3);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid rgba(255, 255, 255, 0.05);
}

.tree-category-header:hover {
    background: rgba(54, 65, 82, 0.5);
    border-color: rgba(102, 126, 234, 0.2);
}

.tree-caret {
    color: #667eea;
    font-weight: bold;
    margin-right: 0.5rem;
    font-size: 0.8rem;
    transition: transform 0.2s ease;
}

.tree-category-text {
    color: #b8c4d1;
    font-size: 0.85rem;
    font-weight: 500;
    flex: 1;
}

.tree-category-content {
    margin-left: 1rem;
    margin-top: 0.25rem;
}

.tree-indicator-item {
    padding: 0.4rem 0.5rem;
    margin-bottom: 0.1rem;
    border-radius: 3px;
    cursor: pointer;
    transition: all 0.15s ease;
    color: #a8b4c1;
    font-size: 0.8rem;
    border: 1px solid transparent;
}

.tree-indicator-item:hover {
    background: rgba(102, 126, 234, 0.1);
    color: #c8d4e1;
}

.tree-indicator-item.selected {
    background: rgba(102, 126, 234, 0.2);
    border-color: rgba(102, 126, 234, 0.3);
    color: #e6edf3;
    font-weight: 500;
}

.tree-indicator-text {
    display: block;
}

/* Selected indicators list */
.selected-indicators {
    background: rgba(15, 17, 22, 0.3);
    border-radius: 4px;
    padding: 0.5rem;
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.selected-indicator-item {
  display: inline-block;
  background-color: #e9ecef;
  border: 1px solid #dee2e6;
  border-radius: 3px;
  padding: 2px 6px;
  margin: 2px;
  font-size: 12px;
  color: #495057;
}

.remove-from-selected {
  background: none;
  border: none;
  color: #6c757d;
  cursor: pointer;
  font-size: 14px;
  font-weight: bold;
  margin-left: 6px;
  padding: 0;
  line-height: 1;
}

.remove-from-selected:hover {
  color: #dc3545;
}

.selected-indicator-item:hover {
    border-color: rgba(102, 126, 234, 0.3);
}

.selected-indicator-item span {
    color: #e6edf3;
    font-size: 0.8rem;
}

/* Button styling for modal */
.modal-compact .btn {
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 500;
}

.modal-compact .btn-success {
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border: none;
}

.modal-compact .btn-success:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(40, 167, 69, 0.3);
}

.modal-compact .btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #fd7e14 100%);
    border: none;
}

.modal-compact .btn-danger:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(220, 53, 69, 0.3);
}

/* Custom scrollbar styling for better UX */
.modal-compact .modal-body::-webkit-scrollbar,
.indicator-tree::-webkit-scrollbar,
.selected-indicators::-webkit-scrollbar {
    width: 8px;
}

.modal-compact .modal-body::-webkit-scrollbar-track,
.indicator-tree::-webkit-scrollbar-track,
.selected-indicators::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

.modal-compact .modal-body::-webkit-scrollbar-thumb,
.indicator-tree::-webkit-scrollbar-thumb,
.selected-indicators::-webkit-scrollbar-thumb {
    background: rgba(102, 126, 234, 0.6);
    border-radius: 4px;
}

.modal-compact .modal-body::-webkit-scrollbar-thumb:hover,
.indicator-tree::-webkit-scrollbar-thumb:hover,
.selected-indicators::-webkit-scrollbar-thumb:hover {
    background: rgba(102, 126, 234, 0.8);
}

/* Responsive adjustments for compact modal */
@media (max-width: 768px) {
    .modal-compact .modal-dialog {
        margin: 0.5rem;
        max-width: none;
        width: calc(100vw - 1rem);
    }

    .modal-compact .modal-body {
        padding: 0.75rem 1rem;
        max-height: calc(100vh - 160px);
    }

    .modal-compact .modal-footer {
        padding: 0.75rem 1rem;
    }

    .add-indicators-container .row > div {
        margin-bottom: 1rem;
    }

    .indicator-tab {
        padding: 0.4rem 0.8rem;
        font-size: 0.8rem;
    }

    .indicator-tree,
    .selected-indicators {
        height: 100%;
    }
}

/* Swimlane Card Styling */
.swimlane.card {
    margin-bottom: 1rem;
    border: 2px solid #007bff;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e3f2fd 100%);
    box-shadow: 0 4px 6px rgba(0, 123, 255, 0.1);
    transition: all 0.3s ease;
}

.swimlane-indicators.drop-target {
    border-color: #00b894 !important;
    background-color: rgba(0, 184, 148, 0.08);
    box-shadow: 0 0 0 1px rgba(0, 184, 148, 0.3) inset;
}

.indicator-card.dragging {
    opacity: 0.6;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.35);
}

.swimlane.card:hover {
    box-shadow: 0 6px 12px rgba(0, 123, 255, 0.15);
    transform: translateY(-1px);
}

.swimlane-header.card-header {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 100%);
    border-bottom: 1px solid #007bff;
    padding: 0.75rem 1rem;
    border-radius: 6px 6px 0 0 !important;
}

.swimlane-title {
    font-weight: 600;
    color: #1565c0;
    font-size: 0.9rem;
}

.swimlane-indicators.card-body {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    border: 2px dashed #007bff;
    border-radius: 0 0 6px 6px;
    min-height: 80px;
    transition: all 0.3s ease;
}

.swimlane-indicators.drag-over {
    background: rgba(0, 123, 255, 0.1) !important;
    border-color: #0056b3 !important;
    border-style: solid !important;
    box-shadow: inset 0 0 10px rgba(0, 123, 255, 0.2);
}

/* Indicator Card Styling */
.indicator-card.card {
    margin-bottom: 0.5rem;
    border: 1px solid #dee2e6;
    border-radius: 6px;
    background: white;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: all 0.2s ease;
    cursor: grab;
}

.indicator-card.card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
    border-color: #007bff;
}

.indicator-card.card.dragging {
    opacity: 0.5;
    transform: scale(0.95);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    cursor: grabbing;
}

.indicator-card .card-body {
    padding: 0.5rem 0.75rem;
}

.indicator-name {
    font-weight: 600;
    color: #495057;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
}

.indicator-details {
    font-size: 0.75rem;
    color: #6c757d;
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.indicator-color-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    flex-shrink: 0;
}

.indicator-actions {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}

.timeframe-select {
    font-size: 0.75rem;
    padding: 0.1rem 0.3rem;
    border-radius: 3px;
    border: 1px solid #ced4da;
    background: white;
    color: #495057;
    min-width: 60px;
}

.timeframe-select:focus {
    border-color: #007bff;
    box-shadow: 0 0 0 0.1rem rgba(0, 123, 255, 0.25);
}

.remove-indicator {
    padding: 0.1rem 0.3rem;
    font-size: 0.75rem;
    line-height: 1;
    border-radius: 3px;
    border: 1px solid #dc3545;
    background: #dc3545;
    color: white;
    transition: all 0.2s ease;
}

.remove-indicator:hover {
    background: #c82333;
    border-color: #bd2130;
    transform: scale(1.05);
}

/* Empty Swimlane Styling */
.swimlane-indicators .text-center {
    padding: 1.5rem 1rem;
}

.swimlane-indicators .fas.fa-inbox {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.swimlane-indicators .text-muted {
    color: #6c757d !important;
    font-size: 0.8rem;
}

/* Drag and Drop Visual Feedback */
.swimlane-indicators.drop-target {
    background: rgba(0, 123, 255, 0.1);
    border-color: #0056b3;
    border-style: solid;
    box-shadow: inset 0 0 10px rgba(0, 123, 255, 0.2);
}

.indicator-card.drag-preview {
    position: absolute;
    pointer-events: none;
    opacity: 0.8;
    z-index: 1000;
    transform: rotate(5deg);
}

/* Landing Page Styles */
.hero-banner {
    min-height: calc(100vh - 64px);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    position: relative;
    display: block;
    margin-left: calc(50% - 50vw);
    margin-right: calc(50% - 50vw);
}

.hero-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    z-index: 1;
    animation: heroOverlayFade .8s ease-out both;
}

.hero-banner .container,
.hero-banner .container-fluid {
    position: relative;
    z-index: 2;
}

.cards-section {
    position: relative;
    z-index: 3;
    margin-top: -60px;
    margin-bottom: 40px;
}

@media (max-width: 768px) {
    .cards-section {
        margin-top: -30px;
    }
}

.clickable-card {
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,.2);
    margin-bottom: 30px;
    background: rgba(31, 38, 48, 0.95);
    border: 1px solid #1f2630;
    color: #cfd7e3;
    height: 100%;
    position: relative;
}

.clickable-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 35px rgba(0,0,0,.3);
}

.card-image-wrapper {
    width: 100%;
    height: 240px;
    padding: 12px;
    background: #0f1116;
    border-bottom: 1px solid #1f2630;
    display: flex;
    align-items: center;
    justify-content: center;
}

.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s ease;
}

.clickable-card:hover .card-image-wrapper img {
    transform: scale(1.03);
}

.clickable-card .card-body {
    background: rgba(31, 38, 48, 0.9);
    color: #e6edf3;
    text-align: center;
    padding: 20px;
    border-top: 1px solid #1f2630;
}

/* Square media cards with overlay text */
.card-media {
    position: relative;
    width: 100%;
    background: #0f1116;
}

.card-square {
    aspect-ratio: 1 / 1;
    min-height: 240px;
}

.card-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.card-media video {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity .25s ease;
    z-index: 1;
    pointer-events: none;
}

.card-media.playing video { opacity: 1; }

.card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding: 16px;
    text-align: center;
    background: linear-gradient(to top, rgba(0,0,0,.6), rgba(0,0,0,.25) 40%, rgba(0,0,0,0) 75%);
    color: #fff;
    z-index: 2;
    pointer-events: none;
}

.card-overlay h5 {
    font-weight: 700;
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    margin: 0;
    text-shadow: 0 2px 8px rgba(0,0,0,.6);
}

.card-overlay p { display: none; }

@media (max-width: 576px) {
    .card-square { min-height: 200px; }
}

/* Reveal animations */
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(16px) scale(0.98); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.reveal {
    opacity: 0;
    transform: translateY(16px) scale(0.98);
}

.reveal.in-view {
    animation: fadeUp 0.6s ease-out forwards;
}

.delay-1 { animation-delay: 0.1s; }
.delay-2 { animation-delay: 0.2s; }
.delay-3 { animation-delay: 0.3s; }

@media (prefers-reduced-motion: reduce) {
    .reveal, .reveal.in-view { animation: none !important; transition: none !important; opacity: 1 !important; transform: none !important; }
}

/* Mobile tuning */
@media (max-width: 992px) {
    .card-image-wrapper { height: 200px; }
}
@media (max-width: 576px) {
    .card-image-wrapper { height: 160px; }
    .hero-banner { min-height: 60vh; background-attachment: scroll; }
}

/* Hero overlay fade */
@keyframes heroOverlayFade {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Responsive stacked table for mobile */
.table-stacked {
    /* desktop default unchanged */
}
@media (max-width: 576px) {
    .table-stacked thead { display: none; }
    .table-stacked, .table-stacked tbody, .table-stacked tr, .table-stacked td { display: block; width: 100%; }
    .table-stacked tr {
        margin-bottom: 1rem;
        border: 1px solid #1f2630;
        border-radius: 8px;
        background: rgba(31, 38, 48, 0.95);
        overflow: hidden;
    }
    .table-stacked td {
        border: 0 !important;
        border-top: 1px solid #1f2630 !important;
        padding: .65rem .9rem;
    }
    .table-stacked td:first-child { border-top: 0 !important; }
    .table-stacked td::before {
        content: attr(data-label);
        display: block;
        font-weight: 600;
        color: #9fb3c8;
        margin-bottom: .25rem;
    }
}

.clickable-card .card-title {
    font-weight: 700;
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.clickable-card .card-text {
    opacity: 0.9;
}