/* JetEngine Exchange Tools - Header-Integrated Design
 * ExchangeCatalogue header-inspired glass morphism styling
 * Version: 4.2.0 - Header aesthetic integration with Outfit font
 */

/* ===== OUTFIT FONT IMPORT ===== */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700;800;900&display=swap');

/* ===== CSS VARIABLES & ROOT SETTINGS ===== */
:root {
    /* Primary Colors - Updated to match ExchangeCatalogue header */
    --primary-green: #00CC66;
    --primary-green-dark: #00b359;
    --primary-green-hover: #00d470;
    --negative-red: #E73121;
    --negative-red-hover: #d42a1b;
    
    /* Glass Morphism - Header-inspired transparency */
    --bg-glass-header: rgba(255, 255, 255, 0.1);
    --bg-glass-content: rgba(255, 255, 255, 0.98);
    --bg-glass-semi: rgba(255, 255, 255, 0.85);
    --border-glass: rgba(255, 255, 255, 0.3);
    --border-glass-hover: rgba(255, 255, 255, 0.5);
    
    /* Typography Colors */
    --text-primary: #333333;
    --text-secondary: #666666;
    --text-light: rgba(255, 255, 255, 0.9);
    
    /* Header-inspired Spacing */
    --container-max-width: 1440px;
    --container-margin: calc(100% - 40px);
    --section-padding-desktop: 2.5rem; /* 40px */
    --section-padding-mobile: 1.5rem;  /* 24px */
    --section-margin-desktop: 80px;
    --section-margin-mobile: 40px;
    --border-radius-header: 20px;
    --border-radius-cards: 16px;
    
    /* Typography - Outfit font family */
    --font-family-primary: 'Outfit', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-size-h3: 1.8em;
    --font-size-h4: 1.3em;
    --font-size-button: 16px;
    --font-weight-bold: 700;
    --font-weight-semibold: 600;
    --font-weight-medium: 500;
    
    /* Header-inspired Animation */
    --transition-header: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-smooth: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --backdrop-blur: blur(32px) saturate(180%);
}

/* ===== UNIVERSAL TOOL BUTTON CLASS ===== */
.tool-button,
.next-step-btn,
.find-exchanges-btn,
.start-over-btn,  
.calculate-btn,
.compare-btn {
    /* Base Styling */
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9375rem 1.625rem; /* 15px 26px */
    margin: 0.625rem auto; /* 10px auto */
    
    /* Typography */
    font-size: var(--font-size-button);
    font-weight: var(--font-weight-semibold);
    color: #ffffff;
    text-align: center;
    text-decoration: none;
    letter-spacing: 0.5px;
    
    /* Layout */
    border: none;
    border-radius: var(--button-radius);
    cursor: pointer;
    min-height: 56px;
    width: auto;
    max-width: 400px;
    box-sizing: border-box;
    
    /* Visual Effects */
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    box-shadow: 0 4px 15px rgba(0, 255, 81, 0.2);
    transition: var(--transition-button);
    
    /* Positioning */
    position: relative;
    overflow: hidden;
}

.tool-button:hover,
.next-step-btn:hover,
.find-exchanges-btn:hover,
.calculate-btn:hover,
.compare-btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 255, 81, 0.3);
    background: linear-gradient(135deg, var(--primary-green-hover), #00b359);
}

.tool-button:active,
.next-step-btn:active,
.find-exchanges-btn:active,
.calculate-btn:active,
.compare-btn:active {
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(0, 255, 81, 0.4);
}

.tool-button:disabled,
.next-step-btn:disabled,
.find-exchanges-btn:disabled,
.calculate-btn:disabled,
.compare-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Secondary Button Styling */
.start-over-btn {
    background: linear-gradient(135deg, var(--error-color), #d63031);
    box-shadow: 0 4px 15px rgba(231, 76, 60, 0.2);
}

.start-over-btn:hover {
    background: linear-gradient(135deg, var(--error-hover), #b71c1c);
    box-shadow: 0 8px 25px rgba(231, 76, 60, 0.3);
}

/* ===== MAIN CONTAINER SYSTEM ===== */
.jet-exchange-finder,
.jet-location-exchanges,
.jet-fee-calculator,
.jet-profit-calculator,
.jet-dca-calculator,
.jet-exchange-comparison,
.jet-altcoin-finder,
.jet-withdrawal-tracker,
.jet-exchange-watchlist,
.jet-crypto-table {
    /* Glass Morphism Container */
    background: var(--bg-white);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    
    /* Layout */
    border-radius: var(--container-radius);
    border: 1px solid var(--border-light);
    padding: var(--section-padding-desktop);
    margin: var(--section-margin-desktop) auto;
    max-width: 1200px;
    
    /* Visual Effects */
    box-shadow: 
        0 10px 40px rgba(0, 0, 0, 0.08),
        0 0 0 1px rgba(255, 255, 255, 0.5),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    transition: var(--transition-smooth);
    
    /* Content */
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.jet-exchange-finder:hover,
.jet-location-exchanges:hover,
.jet-fee-calculator:hover,
.jet-profit-calculator:hover,
.jet-dca-calculator:hover,
.jet-exchange-comparison:hover,
.jet-altcoin-finder:hover,
.jet-withdrawal-tracker:hover,
.jet-exchange-watchlist:hover,
.jet-crypto-table:hover {
    border-color: var(--border-hover);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.1),
        0 10px 20px rgba(0, 255, 81, 0.1);
    transform: translateY(-5px);
}

/* ===== TYPOGRAPHY SYSTEM ===== */
.jet-exchange-finder h3,
.jet-location-exchanges h3,
.jet-fee-calculator h3,
.jet-profit-calculator h3,
.jet-dca-calculator h3,
.jet-exchange-comparison h3,
.jet-altcoin-finder h3,
.jet-withdrawal-tracker h3,
.jet-exchange-watchlist h3,
.jet-crypto-table h3 {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: var(--font-size-h3);
    margin-bottom: 1.5625rem; /* 25px */
    font-weight: var(--font-weight-bold);
    text-align: center;
    position: relative;
    white-space: normal; /* Allow title wrapping */
    word-wrap: break-word; /* Break long titles if needed */
    line-height: 1.2; /* Improve readability for wrapped titles */
    min-width: 0; /* Prevent flex/grid overflow */
}

.jet-exchange-finder h3::after,
.jet-location-exchanges h3::after,
.jet-fee-calculator h3::after,
.jet-profit-calculator h3::after,
.jet-dca-calculator h3::after,
.jet-exchange-comparison h3::after,
.jet-altcoin-finder h3::after,
.jet-withdrawal-tracker h3::after,
.jet-exchange-watchlist h3::after,
.jet-crypto-table h3::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 2px;
}

/* Section Headers */
.finder-step h4,
.results-header h4,
.watchlist-header h4 {
    color: var(--text-primary);
    font-size: var(--font-size-h4);
    margin-bottom: 1.25rem; /* 20px */
    font-weight: var(--font-weight-semibold);
    white-space: normal; /* Allow section header wrapping */
    word-wrap: break-word; /* Break long section titles */
    line-height: 1.3; /* Better readability for wrapped headers */
    min-width: 0; /* Prevent overflow in flex containers */
}

/* ===== FORM SYSTEM ===== */
.form-group {
    margin-bottom: 1.5625rem; /* 25px */
    position: relative;
}

.form-group label {
    display: block;
    margin-bottom: 0.625rem; /* 10px */
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    font-size: 16px;
    letter-spacing: 0.5px;
    white-space: normal; /* Allow label text wrapping */
    word-wrap: break-word; /* Break long form labels */
    line-height: 1.4; /* Better readability for wrapped labels */
}

.form-group select,
.form-group input,
.form-group textarea {
    width: 100%;
    padding: 0.9375rem; /* 15px */
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition-button);
    box-sizing: border-box;
    min-width: 0; /* Prevent form overflow */
    word-wrap: break-word; /* Handle long text in form fields */
}

.form-group select:focus,
.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 81, 0.1);
    background: rgba(255, 255, 255, 1);
}

/* ===== EXCHANGE FINDER SPECIFIC ===== */
.finder-step {
    display: none;
    opacity: 0;
    transform: translateX(30px);
    transition: var(--transition-smooth);
}

.finder-step.active {
    display: block;
    opacity: 1;
    transform: translateX(0);
}

.step-progress {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 2rem;
    gap: 0.625rem; /* 10px */
}

.step-indicator {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: var(--font-weight-bold);
    font-size: 16px;
    background: rgba(0, 0, 0, 0.1);
    color: var(--text-secondary);
    transition: var(--transition-button);
}

.step-indicator.active {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
}

.step-indicator.completed {
    background: var(--primary-green-dark);
    color: white;
}

.step-line {
    width: 60px;
    height: 2px;
    background: rgba(0, 0, 0, 0.1);
    transition: var(--transition-button);
}

.step-line.completed {
    background: var(--primary-green);
}

/* Button Layout */
.step-buttons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
}

/* ===== EXCHANGE COMPARISON SYSTEM ===== */
.comparison-form {
    margin-bottom: 2rem;
}

.comparison-form .tool-button,
.comparison-form .calculate-btn {
    display: block;
    margin: 1.5rem auto 0;
    width: auto;
    max-width: 300px;
}

/* Search Container */
.exchange-search-container {
    position: relative;
    margin-bottom: 1rem;
}

.exchange-search-input {
    width: 100%;
    padding: 0.9375rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition-button);
}

.exchange-search-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 81, 0.1);
}

/* Search Results */
.search-results {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: white;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    max-height: 200px;
    overflow-y: auto;
    z-index: 10;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.search-result-item {
    padding: 0.75rem;
    cursor: pointer;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-button);
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-width: 0; /* Prevent flex overflow */
    word-wrap: break-word; /* Handle long exchange names */
    white-space: normal; /* Allow text wrapping */
}

.search-result-item:hover {
    background: rgba(0, 255, 81, 0.05);
}

.search-result-item:last-child {
    border-bottom: none;
}

/* Selected Exchanges */
.selected-exchanges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1rem;
    min-height: 2rem;
}

.selected-exchange-item {
    display: inline-flex;
    align-items: center;
    background: rgba(0, 255, 81, 0.1);
    border: 1px solid rgba(0, 255, 81, 0.3);
    border-radius: 20px;
    padding: 0.5rem 0.75rem;
    font-size: 14px;
    color: var(--text-primary);
    max-width: 100%; /* Prevent overflow */
    word-wrap: break-word; /* Break long exchange names */
    white-space: normal; /* Allow text wrapping */
}

.remove-selected {
    background: none;
    border: none;
    color: var(--error-color);
    cursor: pointer;
    font-size: 14px;
    font-weight: bold;
    margin-left: 0.5rem;
    padding: 0.125rem 0.25rem;
    border-radius: 50%;
    transition: var(--transition-button);
    line-height: 1;
}

.remove-selected:hover {
    color: var(--error-hover);
    background: rgba(231, 76, 60, 0.1);
}

.selection-hint {
    color: var(--text-secondary);
    font-style: italic;
    margin: 0;
    white-space: normal; /* Allow hint text wrapping */
    word-wrap: break-word; /* Break long hint text */
    line-height: 1.5; /* Better readability */
}

/* ===== COMPARISON TABLE SYSTEM ===== */
.comparison-table-detailed {
    margin-top: 2rem;
    overflow: hidden;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.exchange-comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--bg-glass);
    font-size: 15px;
}

.exchange-comparison-table thead {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
}

.exchange-comparison-table th,
.exchange-comparison-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    vertical-align: top;
    word-wrap: break-word; /* Break long content */
    white-space: normal; /* Allow text wrapping in table cells */
    max-width: 200px; /* Prevent extremely wide cells */
}

.exchange-comparison-table th {
    font-weight: var(--font-weight-semibold);
    position: relative;
}

.exchange-comparison-table tbody tr:hover {
    background: rgba(0, 255, 81, 0.03);
}

.exchange-comparison-table tbody tr:nth-child(even) {
    background: rgba(0, 0, 0, 0.02);
}

.exchange-comparison-table tbody tr:nth-child(even):hover {
    background: rgba(0, 255, 81, 0.05);
}

/* Feature Labels */
.exchange-comparison-table td:first-child {
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    background: rgba(255, 255, 255, 0.5);
    position: relative;
    min-width: 140px; /* Ensure adequate space for feature labels */
    max-width: 180px; /* Prevent excessive width */
}

/* ===== RESULTS AND LOADING STATES ===== */
.calculator-results,
.comparison-results,
.finder-results {
    margin-top: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 12px;
    border: 1px solid rgba(0, 255, 81, 0.1);
}

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--border-light);
    min-width: 0; /* Prevent flex item overflow */
    gap: 1rem; /* Ensure spacing between title and button */
}

.results-header h4 {
    margin: 0;
    color: var(--text-primary);
    flex: 1; /* Allow title to use available space */
    min-width: 0; /* Prevent title overflow */
}

.loading-spinner {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
}

.spinner-icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 3px solid #f3f3f3;
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

/* ===== EXCHANGE ITEMS ===== */
.exchange-result-item,
.exchange-item {
    display: flex;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-button);
    gap: 1rem;
}

.exchange-result-item:hover,
.exchange-item:hover {
    background: rgba(0, 255, 81, 0.05);
    border-color: var(--border-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.exchange-logo {
    width: 50px;
    height: 50px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: rgba(0, 0, 0, 0.05);
}

.exchange-info {
    flex: 1;
    min-width: 0; /* Prevent flex item overflow */
    overflow: hidden; /* Ensure clean boundaries */
}

.exchange-name {
    font-size: 18px;
    font-weight: var(--font-weight-semibold);
    color: var(--text-primary);
    margin-bottom: 0.25rem;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words if needed */
    line-height: 1.3; /* Improve readability for wrapped text */
}

.exchange-details {
    font-size: 14px;
    color: var(--text-secondary);
    line-height: 1.4;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Break long words if needed */
}

.exchange-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

/* ===== RESPONSIVE DESIGN SYSTEM ===== */

/* Tablet Styles (768px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
    .jet-exchange-finder,
    .jet-location-exchanges,
    .jet-fee-calculator,
    .jet-profit-calculator,
    .jet-dca-calculator,
    .jet-exchange-comparison,
    .jet-altcoin-finder,
    .jet-withdrawal-tracker,
    .jet-exchange-watchlist {
        margin: 60px auto;
        padding: 2rem;
    }
    
    .tool-button,
    .next-step-btn,
    .find-exchanges-btn,
    .start-over-btn,
    .calculate-btn,
    .compare-btn {
        width: 100%;
        max-width: none;
        padding: 1rem 1.5rem;
        font-size: 18px;
    }
    
    .step-buttons {
        flex-direction: column;
        gap: 1rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .results-header .start-over-btn {
        width: 100%;
    }
    
    /* Comparison Table Tablet */
    .exchange-comparison-table {
        font-size: 14px;
    }
    
    .exchange-comparison-table th,
    .exchange-comparison-table td {
        padding: 0.75rem 0.5rem;
        max-width: 180px; /* Prevent cell overflow on tablets */
    }
    
    /* Fix tablet text truncation issues */
    .exchange-name {
        font-size: 17px; /* Slightly smaller on tablet */
        line-height: 1.3;
    }
    
    .exchange-details {
        font-size: 13px;
    }
    
    .selected-exchange-item {
        font-size: 13px;
        padding: 0.4rem 0.6rem;
        margin-bottom: 0.25rem; /* Stack better on tablet */
        flex: 1 1 auto; /* Allow flexible sizing */
        min-width: 0; /* Prevent overflow */
    }
}

/* Mobile Styles (≤768px) */
@media (max-width: 768px) {
    .jet-exchange-finder,
    .jet-location-exchanges,
    .jet-fee-calculator,
    .jet-profit-calculator,
    .jet-dca-calculator,
    .jet-exchange-comparison,
    .jet-altcoin-finder,
    .jet-withdrawal-tracker,
    .jet-exchange-watchlist {
        margin: var(--section-margin-mobile) auto;
        padding: var(--section-padding-mobile);
        border-radius: 15px;
    }
    
    .tool-button,
    .next-step-btn,
    .find-exchanges-btn,
    .start-over-btn,
    .calculate-btn,
    .compare-btn {
        width: 100%;
        max-width: none;
        padding: 0.75rem 1.25rem;
        font-size: 16px;
        min-height: 56px;
    }
    
    .step-buttons {
        flex-direction: column;
        gap: 0.75rem;
    }
    
    .results-header {
        flex-direction: column;
        gap: 1rem;
        align-items: stretch;
    }
    
    .results-header .start-over-btn {
        width: 100%;
    }
    
    .selected-exchanges {
        flex-direction: column;
        gap: 0.5rem;
    }
    
    .selected-exchange-item span {
        flex: 1;
        min-width: 0; /* Critical: Allow text to wrap/truncate properly */
        word-wrap: break-word;
        white-space: normal;
    }
    
    .remove-selected {
        font-size: 12px;
        padding: 0.125rem 0.25rem;
    }
    
    /* Mobile Comparison Table - Horizontal Scroll */
    .comparison-table-detailed {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .exchange-comparison-table {
        min-width: 600px;
        font-size: 14px;
    }
    
    .exchange-comparison-table th,
    .exchange-comparison-table td {
        padding: 0.75rem 0.5rem;
        white-space: normal; /* Allow wrapping on mobile */
        min-width: 120px;
        max-width: 160px; /* Prevent excessive width */
        word-wrap: break-word;
    }
    
    .exchange-comparison-table th:first-child,
    .exchange-comparison-table td:first-child {
        position: sticky;
        left: 0;
        background: var(--bg-white);
        z-index: 2;
        min-width: 140px;
        max-width: 180px;
        box-shadow: 2px 0 5px rgba(0,0,0,0.1);
        white-space: normal; /* Critical: Allow feature labels to wrap */
    }
    
    .exchange-comparison-table thead th:first-child {
        background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    }
    
    .exchange-result-item,
    .exchange-item {
        padding: 0.75rem;
        gap: 0.75rem;
    }
    
    .exchange-logo {
        width: 45px;
        height: 45px;
    }
    
    .exchange-name {
        font-size: 16px;
        line-height: 1.3; /* Better readability for wrapped text */
    }
    
    .exchange-details {
        font-size: 13px;
        line-height: 1.4;
    }
}

/* Small Mobile (≤480px) */
@media (max-width: 480px) {
    .jet-exchange-finder h3,
    .jet-location-exchanges h3,
    .jet-fee-calculator h3,
    .jet-profit-calculator h3,
    .jet-dca-calculator h3,
    .jet-exchange-comparison h3,
    .jet-altcoin-finder h3,
    .jet-withdrawal-tracker h3,
    .jet-exchange-watchlist h3 {
        font-size: 1.4em; /* Responsive mobile title size */
        line-height: 1.2;
        margin-bottom: 1rem;
        padding: 0 0.5rem; /* Add padding for mobile titles */
    }
    
    .finder-step h4,
    .results-header h4,
    .watchlist-header h4 {
        font-size: 1.1em; /* Mobile h4 size */
        line-height: 1.3;
        margin-bottom: 0.75rem;
    }
    
    .form-group label {
        font-size: 15px; /* Slightly smaller labels on mobile */
        line-height: 1.4;
    }
    
    .tool-button,
    .next-step-btn,
    .find-exchanges-btn,
    .start-over-btn,
    .calculate-btn,
    .compare-btn {
        padding: 0.75rem 1rem;
        font-size: 15px;
        min-height: 50px;
    }
    
    .remove-selected {
        font-size: 10px;
        padding: 0.125rem 0.1875rem;
        margin-left: 0.25rem;
        flex-shrink: 0; /* Prevent remove button from shrinking */
    }
    
    .exchange-comparison-table {
        min-width: 500px;
        font-size: 12px;
    }
    
    .exchange-comparison-table th,
    .exchange-comparison-table td {
        padding: 0.5rem 0.375rem;
        min-width: 100px;
    }
    
    .exchange-comparison-table th:first-child,
    .exchange-comparison-table td:first-child {
        min-width: 120px;
        max-width: 160px; /* Prevent excessive width on small mobile */
    }
    
    .exchange-name {
        font-size: 15px;
        line-height: 1.3;
    }
    
    .exchange-details {
        font-size: 12px;
    }
    
    .exchange-logo {
        width: 40px;
        height: 40px;
    }
}

/* =============================================================================
   LEVERAGE CALCULATOR - MATCHING EXISTING CALCULATOR STYLING
   ============================================================================= */

.jet-leverage-calculator {
    /* Header-inspired Glass Morphism Container - matching other calculators */
    background: var(--bg-glass-header);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    
    /* Layout matching existing calculators */
    border-radius: var(--border-radius-header);
    border: 1px solid var(--border-glass);
    padding: var(--section-padding-desktop);
    margin: var(--section-margin-desktop) auto;
    max-width: var(--container-max-width);
    width: var(--container-margin);
    
    /* Visual effects matching calculator design */
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: var(--transition-header);
    
    font-family: var(--font-family-primary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.jet-leverage-calculator:hover {
    border-color: var(--border-glass-hover);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 204, 102, 0.1);
    transform: translateY(-2px);
}

/* Leverage Slider Container */
.leverage-slider-container {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 0.5rem;
}

.leverage-slider {
    flex: 1;
    height: 6px;
    background: rgba(0, 0, 0, 0.1);
    border-radius: 3px;
    outline: none;
    appearance: none;
    cursor: pointer;
}

.leverage-slider::-webkit-slider-thumb {
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: var(--transition-button);
}

.leverage-slider::-webkit-slider-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 204, 102, 0.3);
}

.leverage-slider::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    cursor: pointer;
    border: none;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: var(--transition-button);
}

.leverage-slider::-moz-range-thumb:hover {
    transform: scale(1.1);
    box-shadow: 0 4px 8px rgba(0, 204, 102, 0.3);
}

/* Leverage display badge */
.leverage-display {
    font-weight: var(--font-weight-bold);
    font-size: 16px;
    color: var(--primary-green);
    background: rgba(0, 204, 102, 0.1);
    padding: 0.5rem 1rem;
    border-radius: var(--border-radius-cards);
    border: 1px solid rgba(0, 204, 102, 0.2);
    min-width: 60px;
    text-align: center;
}

/* Leverage input field styling */
.leverage-slider-container input[type="number"] {
    width: 80px;
    text-align: center;
}

/* Risk level badges */
.risk-level {
    display: inline-block;
    padding: 0.375rem 0.75rem;
    border-radius: var(--border-radius-cards);
    font-weight: var(--font-weight-semibold);
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.risk-level.low {
    background: rgba(34, 197, 94, 0.15);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.3);
}

.risk-level.medium {
    background: rgba(251, 191, 36, 0.15);
    color: #d97706;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

.risk-level.high {
    background: rgba(239, 68, 68, 0.15);
    color: #dc2626;
    border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Risk warning box */
.risk-warning {
    background: rgba(251, 191, 36, 0.1);
    border: 1px solid rgba(251, 191, 36, 0.3);
    border-radius: var(--border-radius-cards);
    padding: 1rem;
    margin-top: 1rem;
    color: #92400e;
    font-weight: var(--font-weight-medium);
    line-height: 1.5;
}

/* Mobile responsiveness for leverage calculator */
@media (max-width: 768px) {
    .leverage-slider-container {
        flex-direction: column;
        gap: 0.75rem;
        align-items: stretch;
    }
    
    .leverage-slider-container input[type="number"] {
        width: 100%;
        text-align: left;
    }
    
    .leverage-display {
        align-self: center;
        min-width: 80px;
    }
}

/* ===== ADDITIONAL COMPONENTS ===== */

/* Watchlist Styles */
.watchlist-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    margin-bottom: 0.75rem;
    background: var(--bg-glass);
    border-radius: 12px;
    border: 1px solid rgba(0, 0, 0, 0.05);
    transition: var(--transition-button);
    min-width: 0; /* Prevent flex item overflow */
    gap: 1rem; /* Ensure spacing between elements */
}

.watchlist-item .exchange-info {
    flex: 1;
    min-width: 0; /* Allow content to shrink */
}

.watchlist-item:hover {
    background: rgba(0, 255, 81, 0.05);
    border-color: var(--border-light);
}

.watchlist-controls {
    margin-bottom: 2rem;
}

.watchlist-buttons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

@media (max-width: 768px) {
    .watchlist-buttons {
        flex-direction: column;
    }
    
    .watchlist-header h4 {
        font-size: 1.2em; /* Mobile watchlist header size */
        line-height: 1.3;
    }
    
    .watchlist-count,
    .selection-hint {
        font-size: 14px; /* Smaller helper text on mobile */
        line-height: 1.4;
        white-space: normal; /* Allow helper text wrapping */
        word-wrap: break-word;
    }
}

/* Checkbox Styles */
.exchange-checkboxes {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    max-height: 400px;
    overflow-y: auto;
    padding: 1rem;
    border: 2px solid var(--border-light);
    border-radius: 15px;
    background: rgba(255, 255, 255, 0.5);
}

.exchange-checkboxes label {
    white-space: normal; /* Allow checkbox labels to wrap */
    word-wrap: break-word;
    line-height: 1.4;
}

@media (max-width: 768px) {
    .exchange-checkboxes {
        grid-template-columns: 1fr;
        gap: 0.75rem;
        max-height: 300px;
        padding: 0.75rem;
    }
    
    .exchange-checkboxes label {
        font-size: 14px;
        padding: 0.5rem;
    }
}

.checkbox-item {
    padding: 1rem;
    background: var(--bg-glass);
    border-radius: 8px;
    transition: var(--transition-button);
}

.checkbox-item:hover {
    background: rgba(0, 255, 81, 0.05);
}

/* Calculation Results */
.calculation-result {
    background: var(--bg-glass);
    padding: 1.5rem;
    border-radius: 12px;
    border: 1px solid var(--border-light);
    word-wrap: break-word; /* Handle long numbers/text */
    overflow: hidden; /* Prevent layout overflow */
}

.calculation-result p {
    margin-bottom: 0.75rem;
    line-height: 1.6;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word;
}

.calculation-result p:last-child {
    margin-bottom: 0;
}

.calculation-result strong {
    color: var(--primary-green-dark);
    font-weight: var(--font-weight-semibold);
    word-wrap: break-word; /* Handle long numbers */
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }

/* Focus Accessibility */
.tool-button:focus,
.next-step-btn:focus,
.find-exchanges-btn:focus,
.start-over-btn:focus,
.calculate-btn:focus,
.compare-btn:focus {
    outline: 3px solid rgba(0, 255, 81, 0.3);
    outline-offset: 2px;
}

/* ===== CRYPTO TABLE SYSTEM ===== */
.jet-crypto-table {
    /* Inherits main container styling */
}

.crypto-controls {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(10px);
    border-radius: 16px;
    border: 1px solid var(--border-light);
}

.crypto-search-container {
    position: relative;
    max-width: 400px;
}

.crypto-search-input {
    width: 100%;
    padding: 0.9375rem 3rem 0.9375rem 1rem;
    border: 2px solid rgba(0, 0, 0, 0.1);
    border-radius: 12px;
    font-size: 16px;
    background: rgba(255, 255, 255, 0.9);
    transition: var(--transition-button);
    min-width: 0;
}

.crypto-search-input:focus {
    outline: none;
    border-color: var(--primary-green);
    box-shadow: 0 0 0 3px rgba(0, 255, 81, 0.1);
}

.search-icon {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    pointer-events: none;
}

.crypto-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 14px;
    color: var(--text-secondary);
    gap: 1rem;
}

/* Crypto Table Container */
.crypto-table-container {
    background: rgba(255, 255, 255, 0.9);
    border-radius: 16px;
    border: 1px solid var(--border-light);
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
}

.crypto-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
    min-width: 700px; /* Ensure horizontal scroll on mobile */
}

.crypto-table thead {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    position: sticky;
    top: 0;
    z-index: 10;
}

.crypto-table th {
    padding: 1rem 0.75rem;
    text-align: left;
    font-weight: var(--font-weight-bold);
    white-space: nowrap;
    border-bottom: 2px solid rgba(255, 255, 255, 0.2);
}

.crypto-table th.sortable {
    cursor: pointer;
    user-select: none;
    transition: var(--transition-button);
}

.crypto-table th.sortable:hover {
    background: rgba(255, 255, 255, 0.1);
}

.crypto-table th.sortable::after {
    content: '⇅';
    margin-left: 0.5rem;
    opacity: 0.6;
    font-size: 12px;
}

.crypto-table th.sort-asc::after {
    content: '↑';
    opacity: 1;
}

.crypto-table th.sort-desc::after {
    content: '↓';
    opacity: 1;
}

/* Table Column Sizing */
.rank-col { width: 60px; text-align: center; }
.coin-col { width: 200px; min-width: 180px; }
.price-col { width: 120px; text-align: right; }
.change-col { width: 100px; text-align: right; }
.mcap-col { width: 140px; text-align: right; }
.volume-col { width: 140px; text-align: right; }


.crypto-table tbody tr {
    border-bottom: 1px solid var(--border-light);
    transition: var(--transition-button);
}

.crypto-table tbody tr:hover {
    background: rgba(0, 255, 81, 0.03);
}

.crypto-table td {
    padding: 1rem 0.75rem;
    vertical-align: middle;
    white-space: nowrap;
    min-width: 0;
    word-wrap: break-word;
}

/* Coin Cell */
.coin-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    min-width: 0;
}

.coin-logo {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    flex-shrink: 0;
    object-fit: cover;
    background: var(--border-light);
}

.coin-info {
    min-width: 0;
    flex: 1;
}

.coin-name {
    font-weight: var(--font-weight-semibold);
    color: #333333;
    line-height: 1.2;
    margin-bottom: 0.125rem;
    white-space: normal;
    word-wrap: break-word;
}

.coin-symbol {
    font-size: 12px;
    color: #666666;
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold);
}

/* Price and Change Styling */
.price-value {
    font-weight: var(--font-weight-bold);
    color: #333333;
}

.change-positive {
    color: #00CC66;
    font-weight: var(--font-weight-semibold);
}

.change-positive::before {
    content: '+';
}

.change-negative {
    color: #E73121;
    font-weight: var(--font-weight-semibold);
}

.change-negative::before {
    content: '-';
}

.change-neutral {
    color: #666666;
    font-weight: var(--font-weight-semibold);
}

/* Market Cap and Volume */
.market-value {
    font-weight: var(--font-weight-semibold);
    color: #333333;
}



/* Loading Spinner for Crypto Table */
#crypto-loading {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    color: var(--text-secondary);
}

#crypto-loading .spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border-light);
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

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

/* Responsive Crypto Table */
@media (max-width: 1024px) {
    .crypto-table {
        font-size: 13px;
        min-width: 650px;
    }
    
    .crypto-table th,
    .crypto-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .coin-cell {
        gap: 0.5rem;
    }
    
    .coin-logo {
        width: 28px;
        height: 28px;
    }
    
    .crypto-meta {
        flex-direction: column;
        align-items: stretch;
        gap: 0.5rem;
    }
}

@media (max-width: 768px) {
    .crypto-controls {
        padding: 1rem;
        margin-bottom: 1.5rem;
    }
    
    .crypto-search-container {
        max-width: 100%;
    }
    
    .crypto-table-container {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .crypto-table {
        font-size: 12px;
        min-width: 600px;
    }
    
    .crypto-table th,
    .crypto-table td {
        padding: 0.625rem 0.375rem;
    }
    
    .coin-logo {
        width: 24px;
        height: 24px;
    }
    
    .coin-name {
        font-size: 13px;
    }
    
    .coin-symbol {
        font-size: 11px;
    }
    

    
    /* Mobile sticky header enhancement */
    .crypto-table thead th {
        position: sticky;
        top: 0;
        background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
        z-index: 20;
    }
}

@media (max-width: 480px) {
    .crypto-table {
        min-width: 550px;
        font-size: 11px;
    }
    
    .crypto-table th,
    .crypto-table td {
        padding: 0.5rem 0.25rem;
    }
    
    .coin-cell {
        gap: 0.375rem;
    }
    
    .coin-logo {
        width: 20px;
        height: 20px;
    }
    
    .coin-name {
        font-size: 12px;
    }
    

    
    /* Ensure horizontal scroll on small mobile */
    .crypto-table-container {
        margin: 0 -1rem;
        padding: 0 1rem;
    }
}

/* =============================================================================
   CRYPTO PRICE TOOLS - VERSION 1: SIMPLE TABLE (NO SEARCH, TOP 100)
   Header-inspired glass morphism design for seamless integration
   ============================================================================= */

.jet-crypto-simple {
    /* Header-inspired Glass Morphism Container */
    background: var(--bg-glass-header);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    
    /* Header-style Layout & Sizing */
    border-radius: var(--border-radius-header);
    border: 1px solid var(--border-glass);
    padding: var(--section-padding-desktop);
    margin: var(--section-margin-desktop) auto;
    max-width: var(--container-max-width);
    width: var(--container-margin);
    
    /* Enhanced Visual Effects matching header depth */
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 8px 16px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: var(--transition-header);
    
    /* Typography using Outfit font */
    font-family: var(--font-family-primary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.jet-crypto-simple:hover {
    /* Subtle header-style hover enhancement - no background change */
    border-color: var(--border-glass-hover);
    box-shadow: 
        0 25px 50px rgba(0, 0, 0, 0.15),
        0 10px 20px rgba(0, 204, 102, 0.1);
    transform: translateY(-2px);
}

/* Header-style Title with Outfit font */
.jet-crypto-simple h3 {
    font-family: var(--font-family-primary);
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: var(--font-size-h3);
    margin-bottom: 2rem;
    font-weight: var(--font-weight-bold);
    text-align: center;
    position: relative;
    line-height: 1.3;
    letter-spacing: -0.02em;
}

.jet-crypto-simple h3::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 2px;
    opacity: 0.8;
}

/* Header-style Loading State */
.crypto-loading {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    background: var(--bg-glass-content);
    border-radius: var(--border-radius-cards);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

.crypto-loading .spinner {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 204, 102, 0.2);
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 1rem;
}

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

/* Header-inspired Table Container */
.crypto-simple-container {
    background: var(--bg-glass-content);
    backdrop-filter: blur(20px) saturate(180%);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    border-radius: var(--border-radius-cards);
    padding: 1.5rem;
    border: 1px solid var(--border-glass);
    overflow-x: auto;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

/* Table Styling */
.crypto-simple-table {
    width: 100%;
    border-collapse: collapse;
    background: transparent;
    border-radius: 12px;
    overflow: hidden;
    min-width: 600px;
}

.crypto-simple-table th {
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    font-weight: var(--font-weight-semibold);
    padding: 1rem 0.75rem;
    text-align: left;
    font-size: 14px;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.crypto-simple-table th:first-child {
    text-align: center;
    width: 60px;
}

.crypto-simple-table th:last-child,
.crypto-simple-table th:nth-child(5) {
    text-align: right;
}

.crypto-simple-table td {
    padding: 1rem 0.75rem;
    border-bottom: 1px solid rgba(0, 255, 81, 0.1);
    vertical-align: middle;
    font-size: 14px;
    color: #333333;
}

.crypto-simple-table td:first-child {
    text-align: center;
    font-weight: var(--font-weight-semibold);
    color: var(--text-secondary);
}

.crypto-simple-table td:last-child,
.crypto-simple-table td:nth-child(5) {
    text-align: right;
    font-weight: var(--font-weight-semibold);
    color: #333333;
}

.crypto-simple-table td:nth-child(3) {
    font-weight: var(--font-weight-semibold);
    color: #333333;
}

.crypto-simple-table tbody tr {
    transition: var(--transition-button);
}

.crypto-simple-table tbody tr:hover {
    background: rgba(0, 255, 81, 0.03);
    transform: scale(1.005);
}

.crypto-simple-table tr:last-child td {
    border-bottom: none;
}

/* Simple table responsive design */
@media (max-width: 1024px) {
    .crypto-simple-container {
        padding: 1rem;
    }
    
    .crypto-simple-table {
        font-size: 13px;
        min-width: 550px;
    }
    
    .crypto-simple-table th,
    .crypto-simple-table td {
        padding: 0.75rem 0.5rem;
    }
    
    .coin-cell {
        gap: 0.5rem;
    }
    
    .coin-logo {
        width: 24px;
        height: 24px;
    }
    
    .coin-name {
        font-size: 13px;
    }
    
    .coin-symbol {
        font-size: 11px;
    }
}

@media (max-width: 768px) {
    .crypto-simple-container {
        margin: 0 -1rem;
        padding: 0.75rem;
        border-radius: 0;
    }
    
    .crypto-simple-table {
        font-size: 12px;
        min-width: 500px;
    }
    
    .crypto-simple-table th,
    .crypto-simple-table td {
        padding: 0.5rem 0.375rem;
    }
    
    .coin-cell {
        gap: 0.375rem;
    }
    
    .coin-logo {
        width: 20px;
        height: 20px;
    }
    
    .coin-name {
        font-size: 12px;
    }
    
    .coin-symbol {
        font-size: 10px;
    }
}

/* =============================================================================
   CRYPTO PRICE TOOLS - VERSION 2: SIDEBAR WIDGET (TOP 10)
   Sticky header extension styling for sidebar integration
   ============================================================================= */

.jet-crypto-sidebar {
    /* Header-extension Glass Morphism - Sidebar Integration */
    background: var(--bg-glass-header);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    
    /* Sidebar Layout matching header components */
    border-radius: var(--border-radius-header);
    border: 1px solid var(--border-glass);
    padding: 1.5rem;
    margin: 1.5rem auto;
    max-width: 340px;
    min-width: 300px;
    
    /* Enhanced depth for sidebar prominence */
    box-shadow: 
        0 16px 32px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
    transition: var(--transition-header);
    
    /* Header typography system */
    font-family: var(--font-family-primary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

.jet-crypto-sidebar:hover {
    /* Gentle sidebar hover - maintaining header feel, no background change */
    border-color: var(--border-glass-hover);
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.15),
        0 8px 16px rgba(0, 204, 102, 0.08);
    transform: translateY(-1px);
}

/* Header-style Sidebar Title */
.jet-crypto-sidebar h4 {
    font-family: var(--font-family-primary);
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: var(--font-size-h4);
    margin-bottom: 1.5rem;
    font-weight: var(--font-weight-bold);
    text-align: center;
    position: relative;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.jet-crypto-sidebar h4::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 2px;
    background: linear-gradient(90deg, var(--primary-green), var(--primary-green-dark));
    border-radius: 1px;
    opacity: 0.8;
}

/* Header-style Sidebar Loading State */
.crypto-sidebar-loading {
    text-align: center;
    padding: 2rem;
    color: var(--text-secondary);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    font-style: italic;
    background: var(--bg-glass-content);
    border-radius: var(--border-radius-cards);
    border: 1px solid var(--border-glass);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* Header-style List Container */
.crypto-sidebar-list {
    background: var(--bg-glass-content);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    border-radius: var(--border-radius-cards);
    padding: 1rem;
    border: 1px solid var(--border-glass);
    box-shadow: 
        0 4px 12px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

/* Individual Sidebar Items */
.crypto-sidebar-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.75rem 0;
    border-bottom: 1px solid rgba(0, 255, 81, 0.1);
    transition: var(--transition-button);
    border-radius: 8px;
    position: relative;
}

.crypto-sidebar-item:hover {
    margin: 0 -0.75rem;
    padding: 0.75rem;
    border-color: transparent;
    transform: scale(1.02);
}

.crypto-sidebar-item:last-child {
    border-bottom: none;
}

/* Coin Information */
.sidebar-coin-info {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.sidebar-coin-logo {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid rgba(0, 255, 81, 0.1);
}

.sidebar-coin-details {
    min-width: 0;
    flex: 1;
}

.sidebar-coin-name {
    font-weight: var(--font-weight-semibold);
    color: #333333;
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sidebar-coin-symbol {
    color: #666666;
    font-size: 11px;
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 0.5px;
}

/* Price Information */
.sidebar-price-info {
    text-align: right;
    flex-shrink: 0;
    min-width: 0;
}

.sidebar-price {
    font-weight: var(--font-weight-bold);
    color: #333333;
    font-size: 13px;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
}

.sidebar-change {
    font-size: 11px;
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
}

/* Header-style Price Change Colors with badges */
.sidebar-positive { 
    color: #00CC66;
    background: rgba(0, 204, 102, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
    border: 1px solid rgba(0, 204, 102, 0.2);
}

.sidebar-positive::before {
    content: '+';
}

.sidebar-negative { 
    color: #E73121;
    background: rgba(231, 49, 33, 0.15);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
    border: 1px solid rgba(231, 49, 33, 0.2);
}

.sidebar-negative::before {
    content: '-';
}

.sidebar-neutral { 
    color: #666666;
    background: rgba(102, 102, 102, 0.12);
    padding: 3px 8px;
    border-radius: 6px;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
    border: 1px solid rgba(102, 102, 102, 0.2);
}

/* Header-style Error States */
.sidebar-error {
    text-align: center;
    color: var(--negative-red);
    padding: 2rem;
    font-family: var(--font-family-primary);
    font-style: italic;
    font-weight: var(--font-weight-semibold);
    background: rgba(231, 49, 33, 0.1);
    border-radius: var(--border-radius-cards);
    border: 1px solid rgba(231, 49, 33, 0.2);
    backdrop-filter: blur(12px) saturate(180%);
    -webkit-backdrop-filter: blur(12px) saturate(180%);
}

/* =============================================================================
   CRYPTO PRICE TOOLS - VERSION 3: HORIZONTAL TICKER (TOP 5-7)
   Hero section flow integration - seamless header continuation
   ============================================================================= */

.jet-crypto-ticker {
    /* Clean container - no background to let cards float independently */
    background: transparent;
    
    /* Full width container layout */
    padding: 2rem 0;
    margin: 1rem 0;
    width: 100%;
    
    /* Header typography continuation */
    font-family: var(--font-family-primary);
    color: var(--text-primary);
    position: relative;
    overflow: hidden;
}

/* Remove hover effects from main container - let cards handle their own hover */

/* Clean loading state - no duplicate background */
.crypto-ticker-loading {
    text-align: center;
    padding: 3rem;
    color: var(--text-secondary);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 1rem;
    background: transparent;
}

.crypto-ticker-loading::before {
    content: '';
    width: 24px;
    height: 24px;
    border: 3px solid rgba(0, 204, 102, 0.2);
    border-top: 3px solid var(--primary-green);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Endless floating ticker container */
.crypto-ticker-container {
    background: transparent;
    padding: 0;
    overflow: hidden;
    width: 100%;
    position: relative;
}

.crypto-ticker-container:active {
    cursor: grabbing;
}

.crypto-ticker-container::-webkit-scrollbar {
    display: none;
}

/* Single row floating ticker track */
.crypto-ticker-track {
    display: flex;
    gap: 1.5rem;
    padding: 1rem 0;
    align-items: center;
    white-space: nowrap;
    will-change: transform;
    transform: translateX(0);
}

/* Responsive scaling but always single row */
@media (max-width: 768px) {
    .crypto-ticker-track {
        gap: 1.25rem;
        padding: 0.8rem 0;
    }
}

@media (max-width: 480px) {
    .crypto-ticker-track {
        gap: 1rem;
        padding: 0.6rem 0;
    }
}

/* Floating ticker items - no hover effects */
.crypto-ticker-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: var(--bg-glass-header);
    backdrop-filter: var(--backdrop-blur);
    -webkit-backdrop-filter: var(--backdrop-blur);
    border-radius: var(--border-radius-header);
    padding: 1.25rem 1.5rem;
    border: 1px solid var(--border-glass);
    flex-shrink: 0;
    min-width: 220px;
    position: relative;
    box-shadow: 
        0 8px 24px rgba(0, 0, 0, 0.12),
        0 4px 8px rgba(0, 0, 0, 0.06),
        inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

/* Responsive scaling for mobile - always single row */
@media (max-width: 768px) {
    .crypto-ticker-item {
        padding: 1rem 1.25rem;
        gap: 0.8rem;
        min-width: 200px;
    }
}

@media (max-width: 480px) {
    .crypto-ticker-item {
        padding: 0.8rem 1rem;
        gap: 0.6rem;
        min-width: 180px;
    }
    
    .ticker-coin-logo {
        width: 28px !important;
        height: 28px !important;
    }
    
    .ticker-coin-name {
        font-size: 13px !important;
    }
    
    .ticker-coin-symbol {
        font-size: 11px !important;
    }
    
    .ticker-coin-price {
        font-size: 13px !important;
    }
    
    .ticker-price-change {
        font-size: 11px !important;
    }
}

/* Remove hover effects - ticker is not clickable */

/* Coin Logo */
.ticker-coin-logo {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 2px solid rgba(0, 255, 81, 0.1);
    transition: var(--transition-button);
}

/* Logo hover effects removed */

/* Coin Information */
.ticker-coin-info {
    flex: 1;
    min-width: 0;
}

.ticker-coin-name {
    font-weight: var(--font-weight-bold);
    color: #00CC66;
    font-size: 15px;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticker-coin-symbol {
    color: #00CC66;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: var(--font-weight-semibold);
    letter-spacing: 1px;
}

/* Price Information */
.ticker-price-info {
    text-align: right;
    flex-shrink: 0;
    min-width: 0;
}

.ticker-price {
    font-weight: var(--font-weight-bold);
    color: #00CC66;
    font-size: 15px;
    line-height: 1.2;
    margin-bottom: 2px;
    white-space: nowrap;
}

.ticker-change {
    font-size: 12px;
    font-weight: var(--font-weight-semibold);
    white-space: nowrap;
    padding: 3px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* Header-style Price Change Colors with enhanced badges */
.ticker-positive { 
    color: #00FF51;
    background: rgba(0, 255, 81, 0.18);
    border: 1px solid rgba(0, 255, 81, 0.25);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
}

.ticker-negative { 
    color: #E73121;
    background: rgba(231, 49, 33, 0.18);
    border: 1px solid rgba(231, 49, 33, 0.25);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
}

.ticker-neutral { 
    color: var(--text-secondary);
    background: rgba(102, 102, 102, 0.15);
    border: 1px solid rgba(102, 102, 102, 0.25);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
}

/* Clean error state - minimal styling */
.ticker-error {
    text-align: center;
    color: var(--negative-red);
    padding: 2rem;
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
    width: 100%;
    background: transparent;
}

/* =============================================================================
   SHARED CRYPTO TOOLS COMPONENTS
   ============================================================================= */

/* Header-style Common Coin Cell Styling */
.coin-cell {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.coin-logo {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    flex-shrink: 0;
    border: 1px solid var(--border-glass);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.coin-info {
    min-width: 0;
    flex: 1;
}

.coin-name {
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
    color: var(--primary-green);
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 2px;
    letter-spacing: -0.01em;
}

.coin-symbol {
    font-family: var(--font-family-primary);
    color: var(--text-secondary);
    font-size: 12px;
    text-transform: uppercase;
    font-weight: var(--font-weight-medium);
    letter-spacing: 0.5px;
}

/* Header-style Price Change Colors */
.change-positive { 
    color: var(--primary-green);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
}
.change-negative { 
    color: var(--negative-red);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-bold);
}
.change-neutral { 
    color: var(--text-secondary);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-semibold);
}

/* =============================================================================
   RESPONSIVE DESIGN FOR ALL CRYPTO TOOLS
   ============================================================================= */

/* Tablet Responsive (768px - 1024px) */
@media (max-width: 1024px) {
    .jet-crypto-simple,
    .jet-crypto-ticker {
        margin: 60px auto;
        padding: 2rem;
    }
    
    .crypto-ticker-item {
        min-width: 200px;
        padding: 1rem 1.25rem;
    }
    
    .crypto-simple-table th,
    .crypto-simple-table td {
        padding: 0.75rem 0.5rem;
        font-size: 13px;
    }
}

/* Mobile Responsive - Header-style breakpoints */
@media (max-width: 768px) {
    /* Header-style Mobile Container Adjustments */
    .jet-crypto-simple {
        margin: var(--section-margin-mobile) auto;
        padding: var(--section-padding-mobile);
        border-radius: var(--border-radius-cards);
        width: calc(100% - 20px);
        max-width: calc(100vw - 20px);
    }
    
    .jet-crypto-ticker {
        margin: 1rem auto;
        padding: 1rem;
        width: calc(100% - 20px);
        max-width: calc(100vw - 20px);
    }
    
    .jet-crypto-sidebar {
        max-width: 100%;
        width: calc(100% - 20px);
        margin: 1rem auto;
        padding: var(--section-padding-mobile);
        border-radius: var(--border-radius-cards);
    }
    
    /* Simple Table Mobile */
    .crypto-simple-container {
        padding: 1rem;
        margin: 0 -0.5rem;
    }
    
    .crypto-simple-table {
        min-width: 500px;
    }
    
    .crypto-simple-table th,
    .crypto-simple-table td {
        padding: 0.75rem 0.5rem;
        font-size: 12px;
    }
    
    .coin-name {
        font-size: 12px;
    }
    
    .coin-symbol {
        font-size: 10px;
    }
    
    /* Ticker Mobile */
    .crypto-ticker-item {
        min-width: 180px;
        padding: 1rem;
        gap: 0.75rem;
    }
    
    .ticker-coin-logo {
        width: 32px;
        height: 32px;
    }
    
    .ticker-coin-name,
    .ticker-price {
        font-size: 13px;
    }
    
    .ticker-coin-symbol,
    .ticker-change {
        font-size: 11px;
    }
    
    /* Sidebar Mobile */
    .sidebar-coin-logo {
        width: 24px;
        height: 24px;
    }
    
    .sidebar-coin-name,
    .sidebar-price {
        font-size: 12px;
    }
    
    .sidebar-coin-symbol,
    .sidebar-change {
        font-size: 10px;
    }
}

/* Small Mobile - Header-style compact layout */
@media (max-width: 480px) {
    /* Header-style Extra Compact Containers */
    .jet-crypto-simple,
    .jet-crypto-sidebar {
        margin: 1rem auto;
        padding: 1rem;
        border-radius: 12px;
        width: calc(100% - 16px);
        max-width: calc(100vw - 16px);
    }
    
    .jet-crypto-ticker {
        margin: 0.5rem auto;
        padding: 0.5rem;
        width: calc(100% - 16px);
        max-width: calc(100vw - 16px);
    }
    
    /* Titles */
    .jet-crypto-simple h3 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }
    
    .jet-crypto-sidebar h4 {
        font-size: 1.1rem;
        margin-bottom: 1rem;
    }
    
    /* Simple Table Extra Small */
    .crypto-simple-table {
        min-width: 450px;
    }
    
    .crypto-simple-table th,
    .crypto-simple-table td {
        padding: 0.5rem 0.25rem;
        font-size: 11px;
    }
    
    .coin-logo {
        width: 20px;
        height: 20px;
    }
    
    .coin-name {
        font-size: 11px;
    }
    
    .coin-symbol {
        font-size: 9px;
    }
    
    /* Ticker Extra Small */
    .crypto-ticker-track {
        gap: 1rem;
    }
    
    .crypto-ticker-item {
        min-width: 160px;
        padding: 0.75rem;
        gap: 0.5rem;
    }
    
    .ticker-coin-logo {
        width: 28px;
        height: 28px;
    }
    
    .ticker-coin-name,
    .ticker-price {
        font-size: 12px;
    }
    
    .ticker-coin-symbol,
    .ticker-change {
        font-size: 10px;
        padding: 2px 6px;
    }
    
    /* Sidebar Extra Small */
    .crypto-sidebar-item {
        padding: 0.5rem 0;
    }
    
    .sidebar-coin-info {
        gap: 0.5rem;
    }
    
    .sidebar-coin-logo {
        width: 20px;
        height: 20px;
    }
    
    .sidebar-coin-name,
    .sidebar-price {
        font-size: 11px;
    }
    
    .sidebar-coin-symbol,
    .sidebar-change {
        font-size: 9px;
        padding: 1px 4px;
    }
}

/* Header-style Consistent Loading States */
.crypto-loading,
.crypto-sidebar-loading,
.crypto-ticker-loading {
    color: var(--text-secondary);
    font-family: var(--font-family-primary);
    font-weight: var(--font-weight-medium);
    backdrop-filter: blur(16px) saturate(180%);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
}

/* Focus and accessibility */
.crypto-ticker-container:focus {
    outline: 2px solid var(--primary-green);
    outline-offset: 2px;
}

/* Header-style Print optimization */
@media print {
    .jet-crypto-simple,
    .jet-crypto-sidebar {
        background: white !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        box-shadow: none !important;
        border: 1px solid #ccc !important;
    }
    
    .jet-crypto-ticker {
        background: transparent !important;
    }
    
    .crypto-simple-container,
    .crypto-sidebar-list {
        background: white !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        overflow: visible !important;
    }
    
    .crypto-ticker-container {
        overflow: visible !important;
    }
    
    .crypto-ticker-track {
        flex-wrap: wrap !important;
    }
    
    /* Ensure all text uses standard fonts for print */
    * {
        font-family: Arial, sans-serif !important;
    }
}

/* Reduced Motion Support */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
    
    #crypto-loading .spinner {
        animation: none;
    }
}