/* Base styles */
@import url('https://fonts.googleapis.com/css2?family=Roboto+Condensed:wght@300;400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;500;600;700&display=swap');

/* CSS Variables for Elementor colors */
:root {
    --e-global-color-primary: #007cba;
    --e-global-color-826dbe6: #6d4c41;
}

/* Style pour la flèche des trades */
.tsg-price-range {
    display: flex;
    align-items: center;
}

.tsg-price-range::after {
    content: none;
}

.tsg-price-from::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 18px;
    height: 18px;
    margin: 0 3px;
    position: relative;
    top: -1px;
}

.dark-layout .tsg-price-from::after {
    background-image: url('../assets/arrow-black.jpg');
    width: 20px;
    height: 20px;
    margin-right: 2px;
}

.light-layout .tsg-price-from::after {
    background-image: url('../assets/arrow.jpg');
    width: 18px;
    height: 18px;
    margin-right: 2px;
}

.clear-full-layout .tsg-price-from::after {
    background-image: url('../assets/arrow.jpg');
    width: 16px;
    height: 16px;
    margin-right: 2px;
}

/* Espacement pour le chiffre après la flèche */
.tsg-price-to {
    margin-left: 0;
}

/* Main layout */
.tsg-main-container {
    display: flex;
    gap: 30px;
    max-width: 1200px;
    position: relative;
    margin: 0;
    padding: 0;
}

/* Zoom Controls - Fixed position in center of screen */
.tsg-zoom-controls {
    position: fixed;
    left: 50px;
    top: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    padding: 16px 12px;
    border-radius: 25px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.tsg-zoom-button {
    width: 36px;
    height: 36px;
    border: 2px solid #9c27b0;
    background: #fff;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: bold;
    transition: all 0.2s ease;
    color: #9c27b0;
}

.tsg-zoom-button:hover {
    background: #9c27b0;
    color: #fff;
    transform: scale(1.1);
}

.tsg-zoom-button:active {
    transform: scale(0.95);
}

.tsg-zoom-level {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 16px;
    font-size: 10px;
    font-weight: 600;
    color: #333;
    text-align: center;
    padding: 0 0px;
}

/* Preview scaling - only affects the preview, not the download */
.tsg-container {
    transform-origin: center center;
    transition: transform 0.3s ease;
}

.tsg-container.tsg-preview-scaled {
    transform: scale(0.75);
}

/* Responsive adjustments for zoom controls */
@media (max-width: 768px) {
    .tsg-zoom-controls {
        position: fixed;
        left: 50%;
        top: auto;
        bottom: 20px;
        transform: translateX(-50%);
        flex-direction: row;
        padding: 8px 12px;
        gap: 8px;
    }
    
    .tsg-zoom-button {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .tsg-zoom-level {
        min-width: 40px;
        height: 28px;
        font-size: 12px;
        padding: 0 8px;
    }
}

/* Drag Button */
.tsg-drag-button {
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.tsg-drag-button:hover {
    background: rgba(255, 255, 255, 1);
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.tsg-drag-button.active {
    background: #6200EE;
    color: white;
    border-color: #6200EE;
}

.tsg-drag-button.active:hover {
    background: #7c4dff;
    transform: scale(1.05);
}

/* Responsive drag button */
@media (max-width: 768px) {
    .tsg-drag-button {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }
}

/* Controls container for separate shortcode */
.tsg-controls-container {
    font-family:  'poppins', sans-serif;
}

/* Highlight editable fields effect */
@keyframes highlight-pulse {
    0% { box-shadow: 0 0 0 0 rgba(39, 176, 39, 0.5); }
    70% { box-shadow: 0 0 0 8px rgba(156, 39, 176, 0); }
    100% { box-shadow: 0 0 0 0 rgba(156, 39, 176, 0); }
}

.tsg-highlight-effect {
    position: relative !important;
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
    border-radius: 3px !important;
    background-color: rgba(156, 39, 176, 0.15) !important;
    z-index: 100 !important;
    outline: 1px solid rgba(156, 39, 176, 0.5) !important;
}

.dark-layout .tsg-highlight-effect {
    background-color: rgba(156, 39, 176, 0.2) !important;
    color: white !important;
}

.tsg-button#tsg-highlight-editable {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 50%, #9c27b0 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.tsg-editor {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    padding: 0;
    margin: 0;
    min-height: auto;
}

/* Controls */
.tsg-controls {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin: 20px 0;
}

.tsg-button {
    padding: 12px 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 16px;
    text-align: left;
    position: relative;
    overflow: hidden;
}

/* Add subtle shine effect on buttons */
.tsg-button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.tsg-button:hover::before {
    left: 100%;
}

.tsg-button:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

/* Specific hover effects for each button */
.tsg-button#tsg-highlight-editable:hover {
    background: linear-gradient(135deg, #7c4dff 0%, #8e24aa 50%, #ad42c4 100%);
    box-shadow: 0 8px 25px rgba(156, 39, 176, 0.4);
    transform: translateY(-3px);
}

.tsg-button#tsg-toggle-mode:hover {
    background: linear-gradient(135deg, #e3f2fd 0%, #bbdefb 50%, #90caf9 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
    transform: translateY(-3px);
}

.tsg-button#tsg-download:hover {
    background-image: linear-gradient(90deg, #005a8b 0%, #bbdefb 100%);
    transform: translateY(-3px);
}

/* Active states for buttons */
.tsg-button:active {
    transform: translateY(-1px);
    transition: all 0.1s ease;
}

.tsg-button#tsg-highlight-editable:active {
    background: linear-gradient(135deg, #5e35b1 0%, #6a1b9a 50%, #7b1fa2 100%);
    box-shadow: 0 4px 15px rgba(156, 39, 176, 0.5);
}

.tsg-button#tsg-toggle-mode:active {
    background: linear-gradient(135deg, #e1f5fe 0%, #b3e5fc 50%, #81d4fa 100%);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.tsg-button#tsg-download:active {
    background-image: linear-gradient(90deg, #004a73 0%, #bbdefb 100%);
}

/* Focus states for accessibility */
.tsg-button:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.25);
}

.tsg-button#tsg-highlight-editable:focus {
    box-shadow: 0 0 0 3px rgba(156, 39, 176, 0.25), 0 4px 15px rgba(156, 39, 176, 0.3);
}

.tsg-button#tsg-toggle-mode:focus {
    box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.25), 0 4px 15px rgba(0, 0, 0, 0.1);
}

.tsg-button#tsg-download:focus {
    box-shadow: 0 0 0 3px rgba(0, 124, 186, 0.25), 0 4px 15px rgba(0, 124, 186, 0.3);
}

.tsg-button#tsg-toggle-mode {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 50%, #a8a8a8 100%);
    color: #333;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.tsg-button#tsg-download {
    background-image: linear-gradient(90deg, var(--e-global-color-primary) 0%, var(--e-global-color-826dbe6) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(0, 124, 186, 0.3);
}

/* Auto calculation option */
.tsg-auto-calc-option {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    padding: 8px 12px;
    border-radius: 8px;
    gap: 10px;
}

/* Hide auto calculate option for specific platforms/styles */
.tsg-auto-calc-option.tsg-hidden {
    display: none;
}

.tsg-checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    color: white;
    font-weight: 500;
    font-size: 16px;
    user-select: none;
    position: relative;
    transition: all 0.3s ease;
}

.tsg-checkbox-label:hover {
    color: #9c27b0;
    transform: translateY(-1px);
}

.tsg-checkbox {
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #9c27b0;
}

.tsg-checkbox-text {
    color: white;
    font-weight: 500;
}

/* Enhanced tooltip styling */
.tsg-checkbox-label[title]:hover::after,
.tsg-kucoin-qr-container[title]:hover::after,
.tsg-binance-qr-container[title]:hover::after,
.tsg-okx-qr-container-1[title]:hover::after,
.tsg-okx-qr-container-2[title]:hover::after,
.tsg-okx-avatar-container-1[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    background-color: #333;
    color: white;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 14px;
    white-space: nowrap;
    z-index: 1000;
    box-shadow: 0 4px 12px rgba(0,0,0,0.3);
    margin-bottom: 5px;
    max-width: 200px;
    min-width: 200px;
    white-space: normal;
    text-align: center;
    line-height: 1.4;
}

.tsg-checkbox-label[title]:hover::before,
.tsg-kucoin-qr-container[title]:hover::before,
.tsg-binance-qr-container[title]:hover::before,
.tsg-okx-qr-container-1[title]:hover::before,
.tsg-okx-qr-container-2[title]:hover::before,
.tsg-okx-avatar-container-1[title]:hover::before {
    content: '';
    position: absolute;
    bottom: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 5px solid transparent;
    border-top-color: #333;
    margin-bottom: -5px;
    z-index: 1000;
}

/* Platform selector */
.tsg-platform-selector {
    display: flex;
    align-items: center;
    background-color: #2a2a2a;
    padding: 8px 12px;
    border-radius: 8px;
    gap: 10px;
}

.tsg-platform-label {
    color: white;
    font-weight: bold;
    font-size: 16px;
    min-width: 80px;
}

/* Custom dropdown container */
.tsg-platform-dropdown-container {
    position: relative;
    min-width: 200px;
}

.tsg-platform-dropdown {
    background-color: #444;
    color: white;
    border: 2px solid #555;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    font-family: 'Poppins', Arial, sans-serif;
    display: flex;
    align-items: center;
    gap: 8px;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6,9 12,15 18,9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
    padding-right: 40px;
}

.tsg-platform-dropdown:hover {
    border-color: #666;
    background-color: #4a4a4a;
}

.tsg-platform-dropdown:focus {
    outline: none;
    border-color: #6200EE;
    box-shadow: 0 0 0 2px rgba(98, 0, 238, 0.2);
}

/* Platform logo in dropdown */
.tsg-platform-logo {
    width: 24px;
    height: 24px;
    object-fit: contain;
    border-radius: 4px;
    flex-shrink: 0;
}

/* Platform option styling */
.tsg-platform-dropdown option {
    background-color: #444;
    color: white;
    padding: 8px;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Custom dropdown for better logo display */
.tsg-custom-dropdown {
    position: relative;
    display: inline-block;
    min-width: 200px;
}

.tsg-dropdown-trigger {
    background-color: #444;
    color: white;
    border: 2px solid #555;
    border-radius: 6px;
    padding: 8px 12px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
    width: 100%;
    display: flex;
    align-items: center;
    gap: 8px;
    justify-content: space-between;
}

.tsg-dropdown-trigger:hover {
    border-color: #666;
    background-color: #4a4a4a;
}

.tsg-dropdown-trigger:focus {
    outline: none;
    border-color: #6200EE;
    box-shadow: 0 0 0 2px rgba(98, 0, 238, 0.2);
}

.tsg-dropdown-arrow {
    width: 16px;
    height: 16px;
    transition: transform 0.2s ease;
}

.tsg-dropdown-arrow.open {
    transform: rotate(180deg);
}

.tsg-dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: #444;
    border: 2px solid #555;
    border-top: none;
    border-radius: 0 0 6px 6px;
    overflow-y: auto;
    z-index: 1000;
    display: none;
}

.tsg-dropdown-menu.show {
    display: block;
}

.tsg-dropdown-option {
    padding: 10px 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background-color 0.2s ease;
    color: white;
}

.tsg-dropdown-option:hover {
    background-color: #555;
}

.tsg-dropdown-option.disabled {
    color: #999;
    cursor: not-allowed;
    opacity: 0.7;
}

.tsg-dropdown-option.disabled:hover {
    background-color: transparent;
}

.tsg-option-logo {
    width: 20px;
    height: 20px;
    object-fit: contain;
    border-radius: 3px;
    flex-shrink: 0;
}

.tsg-option-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

/* Trigger content styling */
.tsg-trigger-content {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.tsg-trigger-text {
    font-size: 14px;
    font-weight: 500;
}

/* Platform message */
.tsg-platform-message {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 8px;
    padding: 12px 16px;
    margin-bottom: 10px;
    animation: tsg-message-slide-in 0.3s ease-out;
}

@keyframes tsg-message-slide-in {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.tsg-message-content {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tsg-message-icon {
    font-size: 18px;
}

.tsg-message-text {
    color: white;
    font-weight: 500;
    font-size: 14px;
    font-family: 'Poppins', Arial, sans-serif;
}

/* Style selector */
.tsg-style-selector {
    display: flex;
    align-items: center;
    background-color: #333;
    padding: 8px 12px;
    border-radius: 8px;
    gap: 10px;
}

.tsg-style-label {
    color: white;
    font-weight: bold;
    font-size: 16px;
    min-width:fit-content;
}

.tsg-style-buttons {
    display: flex
    ;
        gap: 5px;
        flex-direction: row;
        flex-wrap: wrap;
}

.tsg-style-button {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    border: 2px solid #555;
    background-color: #444;
    color: white;
    font-weight: bold;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.tsg-style-button:hover {
    background-color: #666;
    transform: scale(1.05);
}

.tsg-style-button.tsg-style-active {
    background-color: #6200EE;
    border-color: white;
}

/* Container styles */
.tsg-container {
    width: 597px;
    height: 1280px;
    margin: 0;
    transition: all 0.3s ease;
    padding: 0;
    box-sizing: border-box;
    font-weight: 400;
    position: relative;
    overflow: hidden;
}

/* Remove all spacing from trading layouts */
.tsg-trading-history {
    margin: 0 !important;
    padding: 0 !important;
}

.tsg-trading-history * {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Restore necessary padding for content areas only */
.tsg-trading-history .tsg-status-bar,
.tsg-trading-history .tsg-app-header,
.tsg-trading-history .tsg-header-section,
.tsg-trading-history .tsg-trade-row,
.tsg-trading-history .tsg-add-trade-container,
.tsg-trading-history .tsg-summary-section {
    padding: inherit;
}

/* Ensure specific elements have their original padding */
.dark-layout .tsg-header-section {
    padding: 15px 20px !important;
}

.dark-layout .tsg-trade-row {
    padding: 10px 20px !important;
}

.light-layout .tsg-trade-row {
    padding: 8px 15px 0px 15px !important;
}

.clear-full-layout .tsg-trade-row {
    padding: 8px 15px 8px 15px !important;
}

/* Dynamic container sizing based on active layout */
.tsg-container:has(.kucoin-futures-layout:not([style*="display: none"])) {
    width: 614px !important;
    height: 921px !important;
}

/* Binance container adjustments */
.tsg-container:has(.binance-design-1-layout:not([style*="display: none"])) {
    width: 1160px !important;
    height: 610px !important;
}

.tsg-container:has(.binance-design-2-layout:not([style*="display: none"])) {
    width: 800px !important;
    height: 800px !important;
}

.tsg-container:has(.binance-design-3-layout:not([style*="display: none"])) {
    width: 1035px !important;
    height: 624px !important;
}

.tsg-container:has(.binance-design-4-layout:not([style*="display: none"])) {
    width: 980px !important;
    height: 1340px !important;
}

/* Ensure KuCoin layout takes full container space */
.kucoin-futures-layout {
    width: 100% !important;
    height: 100% !important;
    position: relative;
    overflow: hidden;
    background: #000;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}


/* Dark and Light layouts */
.tsg-trading-history {
    width: 100%;
    height: 100%;
    position: relative;
    overflow: hidden;
}

.tsg-trading-history.dark-layout {
    background-color: #0D0D0D;
    color: #CCCCCC;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
}

.tsg-trading-history.light-layout {
    background-color: #000000;
    color: #000000;
    font-family: Arial, sans-serif;
    font-size: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Status Bar - Dark Mode */
.tsg-status-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
    background-color: #0D0D0D;
    color: #FFFFFF;
    height: 32px;
    font-size: 14px;
}

.tsg-status-left, .tsg-status-right {
    display: flex;
    align-items: center;
}

.tsg-time, .tsg-battery {
    font-weight: bold;
    margin-right: 10px;    font-size: 16px;
    font-family: 'Manrope';
}

.tsg-network-icons {
    height: 20px;
    margin-left: 5px;
}

.tsg-battery-icon {
    height: 18px;
    width: auto;
}

/* App Header */
.tsg-app-header {
    display: flex;
    justify-content: space-between;
    align-items: center;background-color: #121212;
    padding: 10px 15px;
    border-bottom: 1px solid #333;
}

.tsg-menu-button {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
}

.tsg-menu-button span {
    width: 100%;
    height: 2px;
    background-color: #CCCCCC;
}

.tsg-header-title {
    text-align: left;
}

.tsg-title-main {
    font-size: 18px;
    font-family: 'Manrope';
}

.tsg-title-sub {
    font-size: 14px;
    color: #AAAAAA;
    font-family: 'Manrope';
}

.tsg-header-icons {
    display: flex;
    align-items: center;
}

.tsg-header-icons-img {
    height: 24px;
}

/* Dark Mode Header Section */
.dark-layout .tsg-header-section {
    padding: 15px 20px;
    border-bottom: 1px solid #333;
}

.tsg-balance-row {
    display: flex;
    align-items: center;
    line-height: 1;
}

.dark-layout .tsg-label {
    min-width: 85px;
    font-weight: normal;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 22px;
}

.dark-layout .tsg-dotted-line {
    flex: 1;
    height: 1px;
    background-image: linear-gradient(to right, #666 20%, transparent 0%);
    background-position: bottom;
    background-size: 5px 1px;
    background-repeat: repeat-x;
    margin: 0 10px;
}

.dark-layout .tsg-value {
    text-align: right;
    font-weight: 500;
    font-size: 22px;
    font-family: 'Roboto Condensed', sans-serif;
}

/* Spécifiquement pour la première ligne de profit dans le design sombre */
.dark-layout .tsg-header-section .tsg-balance-row:first-child .tsg-value:not(.tsg-negative) {
    color: #41A3FF;
}

.dark-layout .tsg-value.tsg-negative {
    color: #FF4C4C;
}

/* Trade Rows - Dark Mode */
.dark-layout .tsg-trades-list {
    padding: 0;
    max-height: 800px;
    overflow-y: auto;
}

.dark-layout .tsg-trade-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 20px;
    border-bottom: 1px solid #333;
    position: relative;
}

.dark-layout .tsg-symbol-type {
    font-weight: bold;
    font-size: 24px;
}

.dark-layout .tsg-symbol {
    color: #CCCCCC;
}

.dark-layout .tsg-type .tsg-sell {
    color: #FF4C4C;font-weight: 400!important;
}

.dark-layout .tsg-type .tsg-buy {
    color: #41A3FF;font-weight: 400!important;
}

.dark-layout .tsg-price-range {
    color: #CCCCCC;
    font-size: 25px;
}



.dark-layout .tsg-trade-details {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.dark-layout .tsg-timestamp {
    color: #777777;
    font-size: 20px;
    margin-bottom: 5px;
}

.dark-layout .tsg-profit {font-size: 22px;}

.dark-layout .tsg-profit.tsg-negative,
.dark-layout .tsg-profit[contenteditable="true"]:first-letter {
    color: inherit;
}

/* Profit coloring based on value */
.dark-layout .tsg-profit[contenteditable="true"]:not(:empty) {
    color: #41A3FF; /* Default blue for positive */
}

.dark-layout .tsg-profit[contenteditable="true"]:not(:empty):first-letter {
    color: inherit;
}

.dark-layout .tsg-profit[contenteditable="true"]:not(:empty):-webkit-any(:first-line:first-letter) {
    color: inherit;
}

.dark-layout .tsg-profit[contenteditable="true"]:not(:empty):-moz-any(:first-line:first-letter) {
    color: inherit;
}

/* Select styles */
.tsg-trade-action {
    background: transparent;
    border: none;
    font-family: inherit;
    font-size: inherit;
    padding: 0;
    margin: 0;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    cursor: pointer;
    font-weight: bold;
    display: inline-block;
    width: auto;
    text-align: left;
    position: relative;
}

.dark-layout .tsg-trade-action {
    color: inherit;
}

.dark-layout .tsg-trade-action.tsg-sell {
    color: #FF4C4C;
    position: relative;
    vertical-align: baseline;
}

.dark-layout .tsg-trade-action.tsg-buy {
    color: #41A3FF;
    position: relative;
    vertical-align: baseline;
}

.dark-layout .tsg-lot-size {
    margin-left: 2px;
    font-weight: 400!important;
    display: inline-block;
}

/* Inherit color from parent */
.dark-layout .tsg-type .tsg-sell + .tsg-lot-size {
    color: #FF4C4C;
}

.dark-layout .tsg-type .tsg-buy + .tsg-lot-size {
    color: #41A3FF;
}

.light-layout .tsg-type .tsg-sell + .tsg-lot-size {
    color: #E53935;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: bold !important;
    display: inline-block;
    margin-left: 1px;
}

.light-layout .tsg-type .tsg-buy + .tsg-lot-size {
    color: #1976D2;
    font-family: 'Roboto Condensed', sans-serif;
    font-weight: bold !important;
    display: inline-block;
    margin-left: 1px;
}

/* Style ajusté pour les éléments du symbole et du type d'opération */
.tsg-type {
    display: inline-flex;
    align-items: center;
    white-space: nowrap;
}

/* Trade controls */
.tsg-trade-controls {
    position: absolute;
    right: 5px;
    top: 5px;
    display: none;
}

.tsg-trade-row:hover .tsg-trade-controls {
    display: block;
}

.tsg-delete-trade {
    background: rgba(255, 0, 0, 0.2);
    color: #FF4C4C;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 16px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tsg-delete-trade:hover {
    background: rgba(255, 0, 0, 0.5);
}

/* Add trade button */
.tsg-add-trade-container {
    padding: 10px 20px;
    text-align: center;
}

.tsg-add-trade {
    background: rgba(65, 163, 255, 0.1);
    color: #41A3FF;
    border: 1px dashed #41A3FF;
    padding: 8px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-family: inherit;
    font-size: 14px;
}

.tsg-add-trade:hover {
    background: rgba(65, 163, 255, 0.2);
}

/* Bottom image */
.tsg-bottom-image {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
}

.tsg-bottom-image img {
    width: 100%;
    display: block;
}

/* Telegram Header - Light Mode */
.tsg-telegram-header {
    width: 100%;
    overflow: hidden;
    flex-shrink: 0;
    text-align: center;
}

.tsg-telegram-header-img {
    max-width: 100%;
    width: 100%;
    display: inline-block;
}

/* Dark spacers */
.tsg-dark-spacer {
    flex-grow: 1;
    background-color: #000000;
    min-height: 40px;
}

/* Trading Content - Light Mode */
.light-layout .tsg-trading-content {
    background-color: #FFFFFF;
    padding: 0;
    overflow-y: auto;
    max-height: unset;
    width: 100%;
    flex-shrink: 0;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.3);
}

/* Trade Rows - Light Mode */
.light-layout .tsg-trades-list {
    padding: 0;
    border: none;
    border-bottom: 1px solid #CCCCCC;
    max-height: unset;
    overflow-y: visible;
}

.light-layout .tsg-trade-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px 0px 15px;
    border-bottom: 1px solid #CCCCCC;
    position: relative;
}

.light-layout .tsg-symbol-type {
    font-weight: bold;
    font-size: 22px;
    font-family: 'Roboto Condensed', sans-serif;
    display: flex;
    align-items: center;
}

.light-layout .tsg-symbol {
    font-weight: bold;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 22px;
}

/* Summary Section - Light Mode */
.light-layout .tsg-summary-section {
    padding: 10px 15px;
    border: none;
    border-top: 1px solid #CCCCCC;
    margin-bottom: 0;
    font-family: 'Arial', sans-serif;
    background-color: #FFFFFF;
}

.light-layout .tsg-balance-row {
    display: flex;
    justify-content: space-between;
}

.light-layout .tsg-label {
    color: #666666;
    font-weight: bold;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 27px;
}

.light-layout .tsg-summary-section .tsg-value {
    color: #666666 !important;
    font-weight: bold;
}

.light-layout .tsg-value {
    text-align: right;
    font-weight: bold;
    color: #515962;
    font-family: 'Roboto Condensed', sans-serif;        font-size: 27px;
}

.light-layout .tsg-value.tsg-positive {
    color: #1976D2;
    font-weight: bold;
}

.light-layout .tsg-value.tsg-negative {
    color: #E53935;
    font-weight: bold;
}

/* Bottom Image - Light Mode */
.light-layout .tsg-bottom-image {
    width: 100%;
    height: 100px;
    background-color: #000000;
    margin-top: auto;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
}

.light-layout .tsg-bottom-img {
    max-width: 100%;
    height: auto;
    display: inline-block;
}

/* Content editable focus */
/* Template styles */
template {
    display: none;
}

/* Responsive design */
@media (max-width: 1000px) {
    .tsg-main-container {
        flex-direction: column;
    }
    
    
    .tsg-editor {
        margin-top: 20px;
    }
}

@media (max-width: 600px) {
    .tsg-container {
        width: 100%;
        height: auto;
        aspect-ratio: 597 / 1280;
    }
}

.light-layout .tsg-bottom-img {
    width: 100%;
    max-width: 100%;
}

/* Clear Full Layout (Style 3) */
.tsg-trading-history.clear-full-layout {
    background-color: #FFFFFF;
    color: #000000;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Trading Content - Clear Full Mode */
.clear-full-layout .tsg-trading-content {
    background-color: #FFFFFF;
    padding: 0;
    overflow-y: auto;
    max-height: unset;
    width: 100%;
    flex-shrink: 0;
    box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.1);
}

/* Trade Rows - Clear Full Mode */
.clear-full-layout .tsg-trades-list {
    padding: 0;
    border: none;
    max-height: unset;
    overflow-y: visible;
}

.clear-full-layout .tsg-trade-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px 8px 15px;
    border-bottom: 1px solid #EEEEEE;
    position: relative;
}

.clear-full-layout .tsg-symbol-type {
    display: flex;    font-weight: 600!important;

    align-items: center;    font-family: 'Roboto Condensed', sans-serif;

}

.clear-full-layout .tsg-symbol {
    color: #000000;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 22px;
}

.clear-full-layout .tsg-trade-action.tsg-sell {
    color: #D71A20;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;   
    font-size: 22px;
    margin-left: 4px;
    margin-right: 1px;
    display: inline-block;
    position: relative;
    vertical-align: baseline;
}

.clear-full-layout .tsg-trade-action.tsg-buy {
    color: #0E6FD5;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;    
    font-size: 22px;
    margin-left: 4px;
    margin-right: 1px;
    display: inline-block;
    position: relative;
    vertical-align: baseline;
}

.clear-full-layout .tsg-lot-size {
    font-size: 22px;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
    display: inline-block;
    vertical-align: baseline;
    margin-left: 1px;
}

.clear-full-layout .tsg-price-range {
 color: #444444;
    font-family: helvetica;
    font-weight: 300;
    font-size: 22px;
}


.clear-full-layout .tsg-trade-details {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    min-width: 120px;
}

.clear-full-layout .tsg-timestamp {
    font-size: 18px;font-weight: 600;
    color: #505050;
    margin-bottom: 5px;
    font-family: 'Roboto Condensed', sans-serif;
}

.clear-full-layout .tsg-profit {
    font-size: 22px;
    font-weight: bold;
    color: #1976D2;
    font-family: 'Roboto Condensed', sans-serif;
}

.clear-full-layout .tsg-profit[contenteditable="true"]:not(:empty) {
    display: inline-block;
}

.clear-full-layout .tsg-profit.tsg-negative,
.clear-full-layout .tsg-profit[contenteditable="true"]:not(:empty):first-letter:not(:empty) {
    color: #E53935;
}

.clear-full-layout .tsg-add-trade-container {
    text-align: center;
    padding: 15px 0;
    background-color: #FFFFFF;
}

.clear-full-layout .tsg-add-trade {
    background: transparent;
    color: #0E6FD5;
    border: 1px dashed #0E6FD5;
    padding: 8px 15px;
    width: 80%;
    margin: 0 auto;
    display: block;
    text-align: center;
    border-radius: 5px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
}

.clear-full-layout .tsg-add-trade:hover {
    background: rgba(14, 111, 213, 0.1);
}

/* Summary Section - Clear Full Mode */
.clear-full-layout .tsg-summary-section {
    padding: 15px;
    margin-bottom: 0;
    background-color: #FFFFFF;
    border-top: 1px solid #EEEEEE;
}

.clear-full-layout .tsg-balance-row {
    display: flex;
    justify-content: space-between;
}

.clear-full-layout .tsg-label {
    color: #838383;
    font-weight: bold;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 27px;
}

.clear-full-layout .tsg-summary-section .tsg-value {
    color: #666666 !important;
    font-weight: bold;
}

.clear-full-layout .tsg-value {
    text-align: right;
    font-weight: bold;
    color: #515962;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 27px;
}

.clear-full-layout .tsg-value.tsg-positive {
    color: #1976D2;
    font-weight: bold;
}

.clear-full-layout .tsg-value.tsg-negative {
    color: #E53935;
    font-weight: bold;
}

/* Bottom Image - Clear Full Mode */
.clear-full-layout .tsg-bottom-image {
    width: 100%;
    position: relative;
    margin-top: auto;
}

.clear-full-layout .tsg-bottom-img {
    width: 100%;
    max-width: 100%;
    display: block;
}

.light-layout .tsg-trade-action.tsg-sell {
    color: #D71A20;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;   
    font-size: 22px;
    margin-right: 1px;
    display: inline-block;
    position: relative;
    vertical-align: baseline;
}

.light-layout .tsg-trade-action.tsg-buy {
    color: #0E6FD5;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;    
    font-size: 22px;
    margin-right: 1px;
    display: inline-block;
    position: relative;
    vertical-align: baseline;
}

.light-layout .tsg-lot-size {
    color: inherit;
    font-weight: bold;
    font-family: 'Arial', sans-serif;
    font-size: 20px;
    display: inline-block;
    vertical-align: baseline;
}

.light-layout .tsg-price-range {
    font-family: 'Arial', sans-serif;
    font-size: 22px;
    color: #515151;
}

.light-layout .tsg-trade-details {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.light-layout .tsg-timestamp {
    color: #555555;
    font-size: 18px;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
}

.light-layout .tsg-profit {
    font-weight: bold;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 21px;
}

.light-layout .tsg-profit[contenteditable="true"]:not(:empty) {
    color: #0E6FD5; /* Blue for positive - exact color from screenshot */
}

.light-layout .tsg-profit.tsg-negative,
.light-layout .tsg-profit[contenteditable="true"].tsg-negative {
    color: #D71A20; /* Red for negative - exact color from screenshot */
}

.light-layout .tsg-value.tsg-positive {
    color: #0E6FD5;
    font-weight: bold;
}

.light-layout .tsg-value.tsg-negative {
    color: #D71A20;
    font-weight: bold;
}

.light-layout .tsg-add-trade-container {
    text-align: center;
    padding: 10px 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #CCCCCC;
}

.light-layout .tsg-add-trade {
    background: transparent;
    color: #0E6FD5;
    border: 1px dashed #0E6FD5;
    padding: 5px 15px;
    width: 80%;
    margin: 0 auto;
    display: block;
    text-align: center;
    border-radius: 5px;
    font-family: 'Arial', sans-serif;
    font-size: 14px;
}

.light-layout .tsg-add-trade:hover {
    background: rgba(14, 111, 213, 0.1);
}

.clear-full-layout .tsg-type .tsg-sell + .tsg-lot-size {
    color: #D71A20;
    display: inline-block;
    margin-left: 1px;
}

.clear-full-layout .tsg-type .tsg-buy + .tsg-lot-size {
    color: #0E6FD5;
    display: inline-block;
    margin-left: 1px;
}


/* Styles pour les spans éditables remplaçant les sélecteurs */
.tsg-trade-action[contenteditable="true"] {
    display: inline-block;
    padding: 0 2px;
    margin-right: 2px;
    white-space: nowrap;
    vertical-align: baseline;
    min-width: 20px;
}

.dark-layout .tsg-trade-action[contenteditable="true"].tsg-sell {
    color: #FF4C4C;
}

.dark-layout .tsg-trade-action[contenteditable="true"].tsg-buy {
    color: #41A3FF;
}

.light-layout .tsg-trade-action[contenteditable="true"].tsg-sell {
    color: #D71A20;
}

.light-layout .tsg-trade-action[contenteditable="true"].tsg-buy {
    color: #0E6FD5;
}

.clear-full-layout .tsg-trade-action[contenteditable="true"].tsg-sell {
    color: #D71A20;
}

.clear-full-layout .tsg-trade-action[contenteditable="true"].tsg-buy {
    color: #0E6FD5;
}

/* Day View Layout (Style 4) */
.tsg-trading-history.day-view-layout {
    background-color: #FFFFFF;
    color: #000000;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* History View Layout (Style 5) */
.tsg-trading-history.history-view-layout {
    background-color: #FFFFFF;
    color: #000000;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 15px;
    position: relative;
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* Header avec superposition de l'heure */
.day-view-layout .tsg-telegram-header,
.history-view-layout .tsg-telegram-header {
    width: 100%;
    position: relative;
}

.day-view-layout .tsg-time-overlay,
.history-view-layout .tsg-time-overlay {
    position: absolute;
    top: 32px;
    left: 72px;
    color: black;
    font-weight: 500;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, sans-serif;
    font-size: 20px;
}

/* Trading Content - Day View & History View */
.day-view-layout .tsg-trading-content,
.history-view-layout .tsg-trading-content {
    background-color: #FFFFFF;
    padding: 0;
    overflow-y: auto;
    max-height: unset;
    width: 100%;
    flex-shrink: 0;
    font-family: 'Roboto Condensed', sans-serif;
}

/* Trade Rows */
.day-view-layout .tsg-trades-list,
.history-view-layout .tsg-trades-list {
    padding: 0;
    border: none;
    max-height: unset;
    overflow-y: visible;
}

.day-view-layout .tsg-trade-row,
.history-view-layout .tsg-trade-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 15px 0 15px;
    border-bottom: 1px solid #EEEEEE;
    position: relative;
}

.day-view-layout .tsg-symbol-type,
.history-view-layout .tsg-symbol-type {
    font-weight: 600;
    font-size: 22px;
    font-family: 'Roboto Condensed', sans-serif;
    display: flex;
    align-items: center;
}

.day-view-layout .tsg-symbol,
.history-view-layout .tsg-symbol {
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 27px;
}

/* Style des actions d'achat/vente */
.day-view-layout .tsg-trade-action.tsg-buy,
.history-view-layout .tsg-trade-action.tsg-buy {
    color: #0E6FD5;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 27px;
    margin-left: 4px;
    margin-right: 1px;
    display: inline-block;
    position: relative;
    vertical-align: baseline;
}

.day-view-layout .tsg-trade-action.tsg-sell,
.history-view-layout .tsg-trade-action.tsg-sell {
    color: #D71A20;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 27px;
    margin-left: 4px;
    margin-right: 1px;
    display: inline-block;
    position: relative;
    vertical-align: baseline;
}

.day-view-layout .tsg-lot-size,
.history-view-layout .tsg-lot-size {
    font-size: 27px;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
    display: inline-block;
    vertical-align: baseline;
    margin-left: 1px;
}

.day-view-layout .tsg-price-range,
.history-view-layout .tsg-price-range {
    font-family: helvetica;
    font-weight: 300;
    font-size: 26px;
    color: #444444;
    display: flex;
    align-items: center;
}

/* Ajout de la flèche entre les prix dans les styles 4 et 5 */
.day-view-layout .tsg-price-from::after,
.history-view-layout .tsg-price-from::after {
    content: "";
    display: inline-block;
    vertical-align: middle;
    background-image: url('../assets/arrow.jpg');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    width: 18px;
    height: 18px;
    margin: 0 3px;
    position: relative;
    top: -1px;
}

.day-view-layout .tsg-trade-details,
.history-view-layout .tsg-trade-details {
    text-align: right;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.day-view-layout .tsg-timestamp,
.history-view-layout .tsg-timestamp {
    color: #505050;
    font-size: 22px;
    font-weight: 600;
    font-family: 'Roboto Condensed', sans-serif;
    margin-bottom: 5px;
}

.day-view-layout .tsg-profit,
.history-view-layout .tsg-profit {
    font-size: 27px;
    font-weight: bold;
    font-family: 'Roboto Condensed', sans-serif;
}

.day-view-layout .tsg-profit[contenteditable="true"]:not(:empty),
.history-view-layout .tsg-profit[contenteditable="true"]:not(:empty) {
    color: #1976D2; /* Blue for positive */
}

.day-view-layout .tsg-profit.tsg-negative,
.history-view-layout .tsg-profit.tsg-negative,
.day-view-layout .tsg-profit[contenteditable="true"]:not(:empty):first-letter:not(:empty),
.history-view-layout .tsg-profit[contenteditable="true"]:not(:empty):first-letter:not(:empty) {
    color: #E53935; /* Red for negative */
}

/* Summary Section */
.day-view-layout .tsg-summary-section,
.history-view-layout .tsg-summary-section {
    padding: 15px;
    margin-bottom: 0;
    background-color: #FFFFFF;
    border-top: 1px solid #EEEEEE;
}

.day-view-layout .tsg-balance-row,
.history-view-layout .tsg-balance-row {
    display: flex;
    justify-content: space-between;
}

.day-view-layout .tsg-label,
.history-view-layout .tsg-label {
    color: #838383;
    font-weight: bold;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 27px;
}

.day-view-layout .tsg-value,
.history-view-layout .tsg-value {
    text-align: right;
    font-weight: bold;
    color: #666666;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 27px;
}

/* Add trade button */
.day-view-layout .tsg-add-trade-container,
.history-view-layout .tsg-add-trade-container {
    text-align: center;
    padding: 15px 0;
    background-color: #FFFFFF;
    border-bottom: 1px solid #EEEEEE;
}

.day-view-layout .tsg-add-trade,
.history-view-layout .tsg-add-trade {
    background: transparent;
    color: #0E6FD5;
    border: 1px dashed #0E6FD5;
    padding: 8px 15px;
    width: 80%;
    margin: 0 auto;
    display: block;
    text-align: center;
    border-radius: 5px;
    font-family: 'Roboto Condensed', sans-serif;
    font-size: 14px;
    cursor: pointer;
}

.day-view-layout .tsg-add-trade:hover,
.history-view-layout .tsg-add-trade:hover {
    background: rgba(14, 111, 213, 0.1);
}

/* Bottom image */
.day-view-layout .tsg-bottom-image,
.history-view-layout .tsg-bottom-image {
    width: 100%;
    position: relative;
    margin-top: auto;
}

.day-view-layout .tsg-bottom-img,
.history-view-layout .tsg-bottom-img {
    width: 100%;
    max-width: 100%;
    display: block;
}

.day-view-layout .tsg-type .tsg-sell + .tsg-lot-size,
.history-view-layout .tsg-type .tsg-sell + .tsg-lot-size {
    color: #D71A20;
    display: inline-block;
    margin-left: 1px;
}

.day-view-layout .tsg-type .tsg-buy + .tsg-lot-size,
.history-view-layout .tsg-type .tsg-buy + .tsg-lot-size {
    color: #0E6FD5;
    display: inline-block;
    margin-left: 1px;
}

/* Modal Styles */
.tsg-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 10000;
    display: flex;
    align-items: center;
    justify-content: center;
    font-family: 'Poppins', Arial, sans-serif;
}

.tsg-modal-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    width: 90%;
    max-height: 90vh;
    overflow: hidden;
    animation: tsg-modal-fade-in 0.3s ease-out;
}

@keyframes tsg-modal-fade-in {
    from {
        opacity: 0;
        transform: scale(0.9) translateY(-20px);
    }
    to {
        opacity: 1;
        transform: scale(1) translateY(0);
    }
}

.tsg-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 24px 16px;
    border-bottom: 1px solid #e0e0e0;
}

.tsg-modal-header h3 {
    margin: 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.tsg-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #666;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s ease;
}

.tsg-modal-close:hover {
    background-color: #f5f5f5;
    color: #333;
}

.tsg-modal-body {
    padding: 20px 24px;
}

.tsg-modal-body p {
    margin: 0 0 20px 0;
    color: #666;
    font-size: 14px;
}

.tsg-format-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tsg-format-option {
    display: flex;
    align-items: center;
    padding: 16px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fafafa;
}

.tsg-format-option:hover {
    border-color: #6200EE;
    background: #f8f5ff;
}

.tsg-format-option input[type="radio"] {
    margin: 0 12px 0 0;
    width: 18px;
    height: 18px;
    accent-color: #6200EE;
}

.tsg-format-option input[type="radio"]:checked + .tsg-format-label {
    color: #6200EE;
}

.tsg-format-option:has(input[type="radio"]:checked) {
    border-color: #6200EE;
    background: #f8f5ff;
}

.tsg-format-label {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tsg-format-label strong {
    font-size: 16px;
    font-weight: 600;
    color: #333;
}

.tsg-format-label small {
    font-size: 13px;
    color: #666;
    font-weight: 400;
}

.tsg-modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    padding: 16px 24px 20px;
    border-top: 1px solid #e0e0e0;
    background: #fafafa;
}

.tsg-button-secondary {
    background-color: #f5f5f5;
    color: #666;
    border: 1px solid #ddd;
}

.tsg-button-secondary:hover {
    background-color: #e8e8e8;
    color: #333;
}

.tsg-button-primary {
    background-color: #6200EE;
    color: white;
    border: 1px solid #6200EE;
}

.tsg-button-primary:hover {
    background-color: #4a00b8;
    border-color: #4a00b8;
}

/* Responsive modal */
@media (max-width: 480px) {
    .tsg-modal-content {
        width: 95%;
        margin: 20px;
    }
    
    .tsg-modal-header,
    .tsg-modal-body,
    .tsg-modal-footer {
        padding-left: 16px;
        padding-right: 16px;
    }
    
    .tsg-modal-footer {
        flex-direction: column;
    }
    
    .tsg-button {
        width: 100%;
        justify-content: center;
    }
}

/* ===========================================
   KUCOIN FUTURES LAYOUT STYLES
   =========================================== */

/* KuCoin Futures Layout - dimensions now handled by container */

/* Background with Space Shuttle */
.tsg-kucoin-background {
    position: relative;
    width: 100%;
    height: 100%;
    background: #000;
}

.tsg-kucoin-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

/* KuCoin Logo */
.tsg-kucoin-logo {
    position: absolute;
    top: 40px;
    left: 40px;
    z-index: 10;
}

.tsg-kucoin-logo-img {
    height: auto;
    width: 140px;
}

/* User Info Section */
.tsg-kucoin-user-info {
    position: absolute;
    top: 140px;
    left: 40px;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 15px;
}

.tsg-kucoin-avatar {
    position: relative;
}

.tsg-kucoin-avatar-circle {
    width: 70px;
    height: 70px;
    background: #ffffff26;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tsg-kucoin-avatar-text {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    font-family: "Roboto";
}

.tsg-kucoin-user-details {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tsg-kucoin-email {
    color: #ffffff;
    font-size: 30px;
    font-weight: 400;
    font-family: "Roboto";
        text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tsg-kucoin-vip-level {
    display: flex;
    align-items: center;
}

.tsg-kucoin-vip-text {
    color: #ffffff;
    font-size: 18px;
    font-weight: 400;
    font-family: "Roboto";    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tsg-kucoin-vip-checkmark {
    color: #00d4aa;
    font-size: 14px;
    font-weight: 600;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Trading Information */
.tsg-kucoin-trading-info {
    position: absolute;
    top: 300px;
    left: 40px;
    right: 40px;
    z-index: 10;
    text-align: left;
}

.tsg-kucoin-symbol {
    color: #ffffff;
    font-size: 24px;
    font-weight: 600;
    font-family: "Roboto";    margin-bottom: 50px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tsg-kucoin-percentage {
    color: #00d4aa;
    font-size: 65px;
    font-weight: 700;
    font-family: "Roboto";    margin-bottom: 40px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1;
    width: 100%;
}

/* Red color for negative KuCoin percentage */
.tsg-kucoin-percentage.tsg-negative {
    color: #ff4757;
}

/* Price Details */
.tsg-kucoin-price-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    width:65%;
}

.tsg-kucoin-price-left,
.tsg-kucoin-price-right {
    text-align: left;
    display: flex    ;
        flex-direction: column;
        gap:0px;
}

.tsg-kucoin-price-label {
    color: #b7b7b7;
    font-size: 19px;
    font-weight: 400;
    font-family: "Roboto";    
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tsg-kucoin-price-value {
    color: #ffffff;
    font-size: 30px;
    font-weight: 700;
    font-family: "Roboto";    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

/* Bottom Section with QR Code and Referral */
.tsg-kucoin-bottom-section {
    position: absolute;
    bottom: 10px;
    left: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.tsg-kucoin-promo-section {
    display: flex;
    align-items: center;
    gap: 15px;
    flex: 1;
    max-width: 60%;
}

/* KuCoin QR Code Upload Functionality */
.tsg-kucoin-qr-container {
    position: relative;
    display: inline-block;
}

.tsg-kucoin-qr-image {
    transition: all 0.3s ease;
    border-radius: 8px;
}

.tsg-kucoin-qr-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}


/* Highlight effect for KuCoin QR code */
.tsg-kucoin-qr-container.tsg-highlight-effect {
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
    border-radius: 8px !important;
    background-color: rgba(0, 212, 170, 0.2) !important;
    outline: 2px solid rgba(0, 212, 170, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.3) !important;
}

/* OKX QR Code Upload Functionality */
.tsg-okx-qr-container-2 {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tsg-okx-qr-img-1,
.tsg-okx-qr-img-2 {
    transition: all 0.3s ease;
    border-radius: 3px;
}

.tsg-okx-qr-img-1:hover,
.tsg-okx-qr-img-2:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 187, 106, 0.3);
}

/* Highlight effect for OKX QR codes */
.tsg-okx-qr-container-1.tsg-highlight-effect,
.tsg-okx-qr-container-2.tsg-highlight-effect {
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
    border-radius: 3px !important;
    background-color: rgba(102, 187, 106, 0.2) !important;
    outline: 2px solid #66BB6A !important;
}

.tsg-kucoin-k-symbol {
    width: 30px;
    height: 30px;
    background: #00d4aa;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #ffffff;
    font-size: 18px;
    font-weight: 700;
    font-family: "Roboto";    box-shadow: 0 2px 8px rgba(0, 212, 170, 0.3);
    flex-shrink: 0;
}

.tsg-kucoin-promo-text {
    color: #ffffff;
    font-size: 22px;
    font-family: "Roboto";  
      text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}



.tsg-kucoin-referral-code {
    color: #b7b7b7;
    font-size: 22px;
    font-weight: 400;
    font-family: "Roboto";    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
   
}

.tsg-kucoin-qr {
    width: 40px;
    height: 40px;
    background: #ffffff;
    border-radius: 8px;
    padding: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

/* Editable content styling for KuCoin */
.kucoin-futures-layout [contenteditable="true"] {
    outline: none;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.2s ease;
    min-width: 20px;
    display: inline-block;
}

.kucoin-futures-layout [contenteditable="true"]:hover {
    border-color: rgba(0, 212, 170, 0.3);
    background-color: rgba(0, 212, 170, 0.1);
}

.kucoin-futures-layout [contenteditable="true"]:focus {
    border-color: #00d4aa;
    background-color: rgba(0, 212, 170, 0.15);
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.2);
}

/* Highlight effect for KuCoin */
.kucoin-futures-layout .tsg-highlight-effect {
    background-color: rgba(0, 212, 170, 0.2) !important;
    outline: 2px solid #00d4aa !important;
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
}

/* Responsive adjustments for KuCoin */
@media (max-width: 768px) {
    .kucoin-futures-layout {
        width: 100%;
        max-width: 614px;
        height: auto;
        aspect-ratio: 614/921;
    }
    
    .tsg-kucoin-symbol {
        font-size: 20px;
    }
    
    .tsg-kucoin-percentage {
        font-size: 56px;
    }
    
    .tsg-kucoin-price-value {
        font-size: 20px;
    }
    
    .tsg-kucoin-referral-code,
    .tsg-kucoin-join-text,
    .tsg-kucoin-fortune-text {
        font-size: 14px;
    }
}

/* ===========================================
   DISABLED PLATFORM OPTIONS
   =========================================== */

/* Style for disabled platform options */
.tsg-platform-dropdown option:disabled {
    color: #999 !important;
    background-color: #f5f5f5 !important;
    cursor: not-allowed;
}

/* Style for disabled platform options on hover */
.tsg-platform-dropdown option:disabled:hover {
    background-color: #f5f5f5 !important;
    color: #999 !important;
}

/* Platform availability indicators */
.tsg-platform-available {
    color: #333;
    font-weight: 500;
}

.tsg-platform-coming-soon {
    color: #999;
    
    opacity: 0.7;
}

/* ===========================================
   DYNAMIC STYLE BUTTONS
   =========================================== */

/* Style buttons are shown/hidden dynamically via JavaScript */

/* ===========================================
   BINANCE FUTURES LAYOUTS
   =========================================== */

/* Binance Design 1 - 1160x610 - Style basé sur l'image de référence */
.binance-design-1-layout {
    width: 1160px;
    height: 610px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
}

.tsg-binance-background-1 {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    box-sizing: border-box;
}

.tsg-binance-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

/* Logo Binance Futures en haut à gauche */
.tsg-binance-logo {
    position: relative;
    z-index: 10;
    margin-bottom: 30px;
    text-align: left;
}

.tsg-binance-logo-img {
    height: 50px;
    width: auto;
}

/* Section d'informations de trading */
.tsg-binance-trading-info {
    position: relative;
    z-index: 10;
    text-align: left;
    margin-bottom: auto;
}

/* Ligne des paramètres de trading (Short | 2X | ETHUSDT Perpetual) */
.tsg-binance-trading-params {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 32px;
    font-weight: 400;
}

.tsg-binance-trade-type {
    color: #ff4757; /* Rouge-rose plus précis pour Short */
    font-weight: 400;
}

.tsg-binance-trade-type.long {
    color: #00d4aa; /* Vert pour Long */
}

.tsg-binance-trade-type.short {
    color: #ff4757; /* Rouge pour Short */
}

.tsg-binance-separator {
    color: #ffffff8c;
    font-weight: 300;
}

.tsg-binance-leverage {
    color: #ffffff;
    font-weight: 400;
}

.tsg-binance-symbol {
    color: #ffffff;
    font-weight: 400;
}

/* Pourcentage de changement très visible */
.tsg-binance-percentage {
    color: #00d4aa; /* Vert plus précis comme dans l'image */
    font-size: 100px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 30px;
    line-height: 1;
}

/* Rouge pour les pourcentages négatifs dans le style 1 de Binance */
.binance-design-1-layout .tsg-binance-percentage.negative {
    color: #ff4757;
}

/* Détails des prix */
.tsg-binance-price-details {
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: 50%;
}

.tsg-binance-price-left,
.tsg-binance-price-right {
    display: flex;
    flex-direction: row;
        gap: 29px;
        align-items: center;
}

.tsg-binance-price-label {
    color: #ffffffbf;
    font-size: 30px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tsg-binance-price-value {
    color: #f0b90b;
    font-size: 30px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Section du bas avec QR Code et code de parrainage */
.tsg-binance-bottom-section {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-top: 70px;
}

.tsg-binance-qr-section {
    flex-shrink: 0;
}

.tsg-binance-qr-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tsg-binance-qr-image {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.tsg-binance-qr-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

.tsg-binance-promo-section {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.tsg-binance-referral-label {
    color: #dbdbdb;
    font-size: 20px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.tsg-binance-referral-code {
    color: #ffffff;
    font-size: 38px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Styles pour les éléments éditables du Binance Design 1 */
.binance-design-1-layout [contenteditable="true"] {
    outline: none;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.2s ease;
    min-width: 20px;
    display: inline-block;
}

.binance-design-1-layout [contenteditable="true"]:hover {
    border-color: rgba(240, 185, 11, 0.3);
    background-color: rgba(240, 185, 11, 0.1);
}

.binance-design-1-layout [contenteditable="true"]:focus {
    border-color: #f0b90b;
    background-color: rgba(240, 185, 11, 0.15);
    box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.2);
}

/* Effet de surbrillance pour Binance Design 1 */
.binance-design-1-layout .tsg-highlight-effect {
    background-color: rgba(240, 185, 11, 0.2) !important;
    outline: 2px solid #f0b90b !important;
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
}

/* Fonctionnalité d'upload QR Code pour Binance Design 1 */
.tsg-binance-qr-container {
    position: relative;
    display: inline-block;
}

.tsg-binance-qr-container:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

/* Effet de surbrillance pour QR code Binance */
.tsg-binance-qr-container.tsg-highlight-effect {
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
    border-radius: 8px !important;
    background-color: rgba(240, 185, 11, 0.2) !important;
    outline: 2px solid rgba(240, 185, 11, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(240, 185, 11, 0.3) !important;
}

/* Binance Design 2 - 800x800 */
.binance-design-2-layout {
    width: 800px;
    height: 800px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
}

.tsg-binance-background-2 {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 60px;
    box-sizing: border-box;
}

/* Binance Header Section for Design 2 */
.tsg-binance-header {
    position: relative;
    z-index: 10;
    margin-bottom: 20px;
}

.tsg-binance-logo-section {
    display: flex;
    align-items: flex-end;
    gap: 15px;
}

.tsg-binance-logo-img {
    height: 40px;
    width: auto;
}

.tsg-binance-logo-text {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tsg-binance-futures-text {
    color: #ffffff;
    font-size: 25px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}



.tsg-binance-usds-text {
    color: #ffffff;
    font-size: 29px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Main Title for Design 2 */
.tsg-binance-main-title {
    position: relative;
    z-index: 10;
    margin-bottom: 15px;
}

.tsg-binance-title-text {
    color: #ffffff;
    font-size: 32px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin: 0;
    line-height: 1.2;
}

/* Period for Design 2 */
.tsg-binance-period {
    position: relative;
    z-index: 10;
    margin-bottom: 30px;
}

.tsg-binance-period-text {
    color: #b3b3b3;
    font-size: 22px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Performance Statistics for Design 2 */
.tsg-binance-performance-stats {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin-bottom: auto;
}

.tsg-binance-pnl-percentage-section {
    display: flex;
    flex-direction: column;
}

.tsg-binance-pnl-percentage-label {
    color: #dddddd;
    font-size: 23px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tsg-binance-pnl-percentage {
    color: #00d4aa;
    font-size: 80px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.tsg-binance-pnl-percentage.negative {
    color: #ff4757;
}

.tsg-binance-pnl-usd-row {
    display: flex;
    align-items: flex-start;
    gap: 30px;
}

.tsg-binance-pnl-usd-section {
    display: flex;
    flex-direction: column;
}

.tsg-binance-pnl-usd-label {
    color: #dddddd;
    font-size: 23px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tsg-binance-pnl-usd {
    color: #00d4aa;
    font-size: 50px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.tsg-binance-pnl-usd.negative {
    color: #ff4757;
}

.tsg-binance-win-rate-section {
    display: flex;
    flex-direction: column;
}

.tsg-binance-win-rate-label {
    color: #dddddd;
    font-size: 23px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tsg-binance-win-rate {
    color: #00d4aa;
    font-size: 50px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

/* Binance Design 3 - 1035x624 - Style basé sur la nouvelle image de référence */
.binance-design-3-layout {
    width: 1035px;
    height: 624px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
}

.tsg-binance-background-3 {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding-top: 60px;
    padding-right: 60px;
    padding-bottom: 30px;
    padding-left: 60px;
    box-sizing: border-box;
}

/* Shared Binance styles */
.binance-design-2-layout .tsg-binance-background-2,
.binance-design-3-layout .tsg-binance-background-3 {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.binance-design-2-layout .tsg-binance-bg-img,
.binance-design-3-layout .tsg-binance-bg-img {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transform: translate(-50%, -50%);
    z-index: 1;
}

.binance-design-2-layout .tsg-binance-logo,
.binance-design-3-layout .tsg-binance-logo {
    position: relative;
    z-index: 10;
    margin-bottom: 25px;
}

.binance-design-2-layout .tsg-binance-logo-img {
    height: 50px;
    width: auto;
    padding-bottom: 6px;
}

.binance-design-3-layout .tsg-binance-logo-img {
    height: 45px;
    width: auto;
}

.binance-design-2-layout .tsg-binance-user-info,
.binance-design-3-layout .tsg-binance-user-info {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 18px;
    margin-bottom: 25px;
}

.binance-design-2-layout .tsg-binance-avatar-circle,
.binance-design-3-layout .tsg-binance-avatar-circle {
    width: 55px;
    height: 55px;
    background: linear-gradient(135deg, #f0b90b, #fcd535);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

.binance-design-2-layout .tsg-binance-avatar-text,
.binance-design-3-layout .tsg-binance-avatar-text {
    color: #000;
    font-weight: 700;
    font-size: 20px;
    font-family: "Roboto", sans-serif;
}

.binance-design-2-layout .tsg-binance-trading-info,
.binance-design-3-layout .tsg-binance-trading-info {
    position: relative;
    z-index: 10;
    text-align: center;
    margin-bottom: 25px;
}

.binance-design-2-layout .tsg-binance-symbol {
    color: #ffffff;
    font-size: 26px;
    font-weight: 400;
    font-family: "Roboto", sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 12px;
}



.binance-design-3-layout .tsg-binance-symbol {
    color: #ffffff;
    font-size: 26px;
    font-weight: 400;
    font-family: "Roboto", sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.binance-design-2-layout .tsg-binance-percentage,
.binance-design-3-layout .tsg-binance-percentage {
    color: #00d4aa;
    font-size: 52px;
    font-weight: 700;
    font-family: "Roboto", sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 25px;
}

.binance-design-2-layout .tsg-binance-price-details,
.binance-design-3-layout .tsg-binance-price-details {
    display: flex;
    justify-content: space-between;
    gap: 25px;
}

.binance-design-2-layout .tsg-binance-bottom-section,
.binance-design-3-layout .tsg-binance-bottom-section {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
}

.binance-design-2-layout .tsg-binance-promo-section,
.binance-design-3-layout .tsg-binance-promo-section {
    flex: 1;
    max-width: 65%;
}

.binance-design-2-layout .tsg-binance-promo-text,
.binance-design-3-layout .tsg-binance-promo-text {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    font-family: "Roboto", sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
    margin-bottom: 10px;
}

.binance-design-2-layout .tsg-binance-referral-code,
.binance-design-3-layout .tsg-binance-referral-code {
    color: #f0b90b;
    font-size: 20px;
    font-weight: 500;
    font-family: "Roboto", sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}



.binance-design-2-layout .tsg-binance-qr-image {
    width: 150px;
    height: 150px;
    border: 7px solid #ffffff;
    transition: all 0.3s ease;
}





.binance-design-3-layout .tsg-binance-qr-image {
    width: 120px;
    height: 120px;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.binance-design-2-layout .tsg-binance-qr-image:hover,
.binance-design-3-layout .tsg-binance-qr-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

/* Specific styles for Binance Design 2 */
.binance-design-2-layout .tsg-binance-bottom-section {
    position: relative;
    z-index: 10;
    display: flex;
    gap: 20px;
    margin-top: auto;
}

.binance-design-2-layout .tsg-binance-qr-section {
    flex-shrink: 0;
}



.binance-design-2-layout .tsg-binance-promo-section {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.binance-design-2-layout .tsg-binance-referral-label {
    color: #cacaca;
    font-size: 20px;
    font-weight: 400;
    font-family: "Roboto", sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.binance-design-2-layout .tsg-binance-referral-code {
    color: #ffffff;
    font-size: 36px;
    font-weight: 400;
    font-family: "Roboto", sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Editable content styling for Binance */
.binance-design-1-layout [contenteditable="true"],
.binance-design-2-layout [contenteditable="true"],
.binance-design-3-layout [contenteditable="true"] {
    outline: none;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.2s ease;
    min-width: 20px;
    display: inline-block;
}

.binance-design-1-layout [contenteditable="true"]:hover,
.binance-design-2-layout [contenteditable="true"]:hover,
.binance-design-3-layout [contenteditable="true"]:hover {
    border-color: rgba(240, 185, 11, 0.3);
    background-color: rgba(240, 185, 11, 0.1);
}

.binance-design-1-layout [contenteditable="true"]:focus,
.binance-design-2-layout [contenteditable="true"]:focus,
.binance-design-3-layout [contenteditable="true"]:focus {
    border-color: #f0b90b;
    background-color: rgba(240, 185, 11, 0.15);
    box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.2);
}

/* Highlight effect for Binance */
.binance-design-1-layout .tsg-highlight-effect,
.binance-design-2-layout .tsg-highlight-effect,
.binance-design-3-layout .tsg-highlight-effect {
    background-color: rgba(240, 185, 11, 0.2) !important;
    outline: 2px solid #f0b90b !important;
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
}

/* Binance QR Code Upload Functionality */
.tsg-binance-qr-container {
    position: relative;
    display: inline-block;
}

.tsg-binance-qr-container:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

/* Highlight effect for Binance QR code */
.tsg-binance-qr-container.tsg-highlight-effect {
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
    border-radius: 8px !important;
    background-color: rgba(240, 185, 11, 0.2) !important;
    outline: 2px solid rgba(240, 185, 11, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(240, 185, 11, 0.3) !important;
}

/* ===========================================
   BINANCE DESIGN 3 SPECIFIC STYLES
   =========================================== */

/* Logo Binance Futures pour Design 3 */
.binance-design-3-layout .tsg-binance-logo {
    position: relative;
    z-index: 10;
    margin-bottom: 30px;
    text-align: left;
}

.binance-design-3-layout .tsg-binance-logo-img {
    height: 50px;
    width: auto;
}

/* Section d'informations de trading pour Design 3 */
.binance-design-3-layout .tsg-binance-trading-info {
    position: relative;
    z-index: 10;
    text-align: left;
    margin-bottom: auto;
}

/* Ligne des paramètres de trading pour Design 3 (Long | 10x | ETHUSDT Perpetual) */
.binance-design-3-layout .tsg-binance-trading-params {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
    font-family: 'Roboto', sans-serif;
    font-size: 26px;
    font-weight: 400;
}

.binance-design-3-layout .tsg-binance-trade-type {
    color: #00d4aa; /* Vert pour Long */
    font-weight: 400;
}

.binance-design-3-layout .tsg-binance-trade-type.long {
    color: #00d4aa; /* Vert pour Long */
}

.binance-design-3-layout .tsg-binance-trade-type.short {
    color: #ff4757; /* Rouge pour Short */
}

.binance-design-3-layout .tsg-binance-separator {
    color: #ffffff;
    font-weight: 300;
}

.binance-design-3-layout .tsg-binance-leverage {
    color: #ffffff;
    font-weight: 400;
}

.binance-design-3-layout .tsg-binance-symbol {
    color: #ffffff;
    font-weight: 400;
}

/* Pourcentage de changement très visible pour Design 3 */
.binance-design-3-layout .tsg-binance-percentage {
    color: #00d4aa; /* Vert vif comme dans l'image */
    font-size: 90px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
   
    line-height: 1;
}

/* Rouge pour les pourcentages négatifs dans le style 3 de Binance */
.binance-design-3-layout .tsg-binance-percentage.negative {
    color: #ff4757;
}

/* Détails des prix pour Design 3 */
.binance-design-3-layout .tsg-binance-price-details {
    display: flex;
    flex-direction: column;
    gap: 0px;
    width: 50%;
}

.binance-design-3-layout .tsg-binance-price-left,
.binance-design-3-layout .tsg-binance-price-right {
    display: flex;
    flex-direction: row;
    gap: 60px;
}

.binance-design-3-layout .tsg-binance-price-label {
    color: #aaaaaa;
    font-size: 28px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.binance-design-3-layout .tsg-binance-price-value {
    color: #f0b90b; /* Jaune Binance */
    font-size: 28px;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Section du bas avec QR Code et code de parrainage pour Design 3 */
.binance-design-3-layout .tsg-binance-bottom-section {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: flex-start;
    gap: 20px;
    margin-top: auto;
}

.binance-design-3-layout .tsg-binance-qr-section {
    flex-shrink: 0;
}

.binance-design-3-layout .tsg-binance-qr-container {
    position: relative;
    display: inline-block;
    cursor: pointer;
}


.binance-design-3-layout .tsg-binance-qr-image:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

.binance-design-3-layout .tsg-binance-promo-section {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.binance-design-3-layout .tsg-binance-referral-label {
    color: #cdcdcd;
    font-size: 26px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    letter-spacing: 0.5px;
}

.binance-design-3-layout .tsg-binance-referral-code {
    color: #ffffff;
    font-size: 46px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.binance-design-3-layout .tsg-binance-app-text {
    color: #f0b90b;
    font-size: 22px;
    font-weight: 300;
    letter-spacing: 2px;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
 
}

/* Responsive adjustments for Binance */
@media (max-width: 1200px) {
    .binance-design-1-layout {
        width: 100%;
        max-width: 1160px;
        height: auto;
        aspect-ratio: 1160/610;
    }
    
    .binance-design-2-layout {
        width: 100%;
        max-width: 800px;
        height: auto;
        aspect-ratio: 1/1;
    }
    
    .binance-design-3-layout {
        width: 100%;
        max-width: 1035px;
        height: auto;
        aspect-ratio: 1035/624;
    }
    
    .binance-design-4-layout {
        width: 100%;
        max-width: 980px;
        height: auto;
        aspect-ratio: 980/1340;
    }
}

@media (max-width: 768px) {
    .binance-design-1-layout,
    .binance-design-2-layout,
    .binance-design-3-layout,
    .binance-design-4-layout {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 4/3;
    }
    
    .tsg-binance-symbol {
        font-size: 18px;
    }
    
    .tsg-binance-percentage {
        font-size: 36px;
    }
    
    .tsg-binance-price-value {
        font-size: 16px;
    }
    
    .tsg-binance-referral-code,
    .tsg-binance-promo-text {
        font-size: 14px;
    }
    
    .tsg-binance-qr-image {
        width: 60px;
        height: 60px;
    }
}

/* ===========================================
   BINANCE DESIGN 4 STYLES (980x1340)
   =========================================== */

/* Binance Design 4 - 980x1340 - Style basé sur l'image de référence */
.binance-design-4-layout {
    width: 980px;
    height: 1340px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
}

.tsg-binance-background-4 {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    box-sizing: border-box;
}

.tsg-binance-bg-img-4 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* User Info Section */
.tsg-binance-user-info-4 {
    position: relative;
    z-index: 10;
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 40px;
}

.tsg-binance-avatar-4 {
    position: relative;
}

.tsg-binance-avatar-circle-4 {
    width: 100px;
    height: 100px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.tsg-binance-avatar-circle-4:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

.tsg-binance-avatar-img-4 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tsg-binance-user-details-4 {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.tsg-binance-username-4 {
    color: #ffffff;
    font-size: 50px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tsg-binance-datetime-4 {
    color: #dfdfdf;
    font-size: 30px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Trading Information */
.tsg-binance-trading-info-4 {
    position: relative;
    z-index: 10;
    text-align: left;
    margin-bottom: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.tsg-binance-symbol-4 {
    color: #ffffff;
    font-size: 55px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  
}

.tsg-binance-position-info-4 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 30px;
    font-family: 'Roboto', sans-serif;
    font-size: 36px;
    font-weight: 300;
}

.tsg-binance-trade-type-4 {
    color: #ffffff;
    font-weight: 300;
}

.tsg-binance-trade-type-4.long {
    color: #00d4aa;
}

.tsg-binance-trade-type-4.short {
    color: #ff4757;
}

.tsg-binance-separator-4 {
    color: #dadada;
    font-weight: 300;
}

.tsg-binance-leverage-4 {
    color: #dadada;
    font-weight: 300;
}

/* Percentage Change - Very prominent */
.tsg-binance-percentage-4 {
    color: #00d4aa;
    font-size: 120px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    margin-bottom: 40px;
    line-height: 1;
}

.tsg-binance-percentage-4.negative {
    color: #ff4757;
}

/* Price Details */
.tsg-binance-price-details-4 {
    display: flex    ;
        justify-content: flex-start;
        gap: 245px;
        width: 100%;
}

.tsg-binance-price-left-4,
.tsg-binance-price-right-4 {
    display: flex;
    flex-direction: column;
    gap: 0px;
}

.tsg-binance-price-label-4 {
    color: #c2c2c2;
    font-size: 32px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tsg-binance-price-value-4 {
    color: #ffffff;
    font-size: 38px;
    font-weight: 500;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Bottom Section */
.tsg-binance-bottom-section-4 {
    position: relative;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: auto;
}

.tsg-binance-logo-section-4 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tsg-binance-logo-4 {
    display: flex;
    align-items: center;
}

.tsg-binance-logo-img-4 {
    
    width: 250px;
}

.tsg-binance-referral-info-4 {
    display: flex;
    flex-direction: column;
}

.tsg-binance-referral-code-4 {
    color: #c2c2c2;
    font-size: 32px;
    margin-left: 36px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tsg-binance-qr-section-4 {
    flex-shrink: 0;
}

.tsg-binance-qr-container-4 {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tsg-binance-qr-container-4:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

.tsg-binance-qr-image-4 {
    width: 140px;
    border: 13px solid #ffffff!important;
    border-radius: 10px!important;
    transition: all 0.3s ease;
    margin-right: 20px;
}

.tsg-binance-qr-image-4:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(240, 185, 11, 0.3);
}

/* Editable content styling for Binance Design 4 */
.binance-design-4-layout [contenteditable="true"] {
    outline: none;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.2s ease;
    min-width: 20px;
    display: inline-block;
}

.binance-design-4-layout [contenteditable="true"]:hover {
    border-color: rgba(240, 185, 11, 0.3);
    background-color: rgba(240, 185, 11, 0.1);
}

.binance-design-4-layout [contenteditable="true"]:focus {
    border-color: #f0b90b;
    background-color: rgba(240, 185, 11, 0.15);
    box-shadow: 0 0 0 2px rgba(240, 185, 11, 0.2);
}

/* Highlight effect for Binance Design 4 */
.binance-design-4-layout .tsg-highlight-effect {
    background-color: rgba(240, 185, 11, 0.2) !important;
    outline: 2px solid #f0b90b !important;
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
}

/* Highlight effect for Binance Design 4 QR code */
.tsg-binance-qr-container-4.tsg-highlight-effect {
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
    border-radius: 8px !important;
    background-color: rgba(240, 185, 11, 0.2) !important;
    outline: 2px solid rgba(240, 185, 11, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(240, 185, 11, 0.3) !important;
}

/* Highlight effect for Binance Design 4 avatar */
.tsg-binance-avatar-circle-4.tsg-highlight-effect {
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
    border-radius: 50% !important;
    background-color: rgba(240, 185, 11, 0.2) !important;
    outline: 2px solid rgba(240, 185, 11, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(240, 185, 11, 0.3) !important;
}

/* ===========================================
   BYBIT DESIGN STYLES
   =========================================== */

/* Bybit Design 1 - 900x1133px - Style basé sur le premier screenshot */
.bybit-design-1-layout {
    width: 900px;
    height: 1133px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
    background: #000;
}

.tsg-bybit-background-1 {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 0;
    box-sizing: border-box;
}

.tsg-bybit-bg-img-1 {
    position: absolute;
    top: -145px;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}


/* Trading Information Section */
.tsg-bybit-trading-info-1 {
    position: absolute;
    top: 100px;
    left: 40px;
    z-index: 10;
    color: white;
    width: 470px;
}

/* Symbol and Leverage Row */
.tsg-bybit-symbol-leverage-1 {
    display: flex;
    align-items: center;
    margin-bottom: 70px;
}

.tsg-bybit-symbol-1 {
    color: #ffffff;
    font-size: 62px;
    font-weight: 500;
    min-width: fit-content !important;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tsg-bybit-leverage-badge-1 {
    background: #512523b5;
    color: #FF6A6F;
    padding: 6px 12px !important;
    font-size: 19px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    min-width: fit-content !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-left: 15px;
}

/* Badge colors for Long/Short - Design 1 */
.tsg-bybit-leverage-badge-1.long {
    background: #153e1e;
    color: #20b068;
}

.tsg-bybit-leverage-badge-1.short {
    background: #512523b5;
    color: #FF6A6F;
}

/* ROI Section */
.tsg-bybit-roi-section-1 {
    margin: 30px 0;
    text-align: left;
}

.tsg-bybit-roi-label-1 {
    color: #ccc;
    font-size: 36px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 5px;
}

.tsg-bybit-roi-value-1 {
    color: #21d07e;
    font-size: 130px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.tsg-bybit-roi-value-1.negative {
    color: #ff4757;
}

/* ROI negative styling */
.tsg-bybit-roi-value-1.tsg-negative {
    color: #ff4757;
}

/* Price Details */
.tsg-bybit-price-details-1 {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.tsg-bybit-price-row-1 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.tsg-bybit-price-label-1 {
    color: #ccc;
    font-size: 36px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tsg-bybit-price-value-1 {
    color: #ffaa00;
    font-size: 36px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Bottom Section with QR Code and Referral */
.tsg-bybit-bottom-section-1 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1c1f28;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 30px;
}

.tsg-bybit-promo-section-1 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    max-width: 60%;
}

.tsg-bybit-logo-section-1 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 5px;
}

.tsg-bybit-logo-img-1 {
    height: 30px;
    width: auto;
}

.tsg-bybit-logo-text-1 {
    color: #949494;
    font-size: 30px;
    font-weight: 400;
    min-width: fit-content !important;
    letter-spacing: 2px;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tsg-bybit-logo-accent-1 {
    width: 4px;
    height: 30px;
    background: #FBBF24;
    border-radius: 2px;
}

.tsg-bybit-promo-text-1 {
    color: #b5b5b5;
    font-size: 31px;
    min-width: fit-content !important;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    line-height: 1.4;
}

.tsg-bybit-qr-section-1 {
    flex-shrink: 0;
}

.tsg-bybit-qr-container-1 {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tsg-bybit-qr-image-1 {
    width: 110px;
    border-radius: 10px !important;
    border: 12px solid #ffffff !important;
    transition: all 0.3s ease;
}

.tsg-bybit-qr-image-1:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

/* Editable content styling for Bybit Design 1 */
.bybit-design-1-layout [contenteditable="true"] {
    outline: none;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.3s ease;
    cursor: text;
}

.bybit-design-1-layout [contenteditable="true"]:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 170, 0.5);
}

.bybit-design-1-layout [contenteditable="true"]:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #00d4aa;
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.3);
}

/* Highlight effect for editable areas */
.bybit-design-1-layout.highlight-editable [contenteditable="true"] {
    background-color: rgba(0, 212, 170, 0.2);
    border-color: #00d4aa;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.7; }
}

/* Bybit Design 2 - 960x1320px - Style basé sur le second screenshot */
.bybit-design-2-layout {
    width: 960px;
    height: 1320px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
    background: #000;
}

.tsg-bybit-background-2 {
    position: relative;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 40px;
    box-sizing: border-box;
}

.tsg-bybit-bg-img-2 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 1;
}

/* Trading Information Section for Design 2 */
/* Bybit Logo Top for Design 2 */
.tsg-bybit-logo-top-2 {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.tsg-bybit-logo-img-top-2 {
    height: 55px!important;
    width: auto;
}

.tsg-bybit-trading-info-2 {
    position: absolute;
    top: 230px;
    left: 40px;
    z-index: 10;
    color: white;
    width: 400px;
}

/* Symbol and Short Badge Row */
.tsg-bybit-symbol-leverage-2 {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 20px;
}

.tsg-bybit-symbol-2 {
    color: #ffffff;
    font-size: 72px;
    min-width: fit-content !important;
    font-weight: 600;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.tsg-bybit-leverage-badge-2 {
    background: #153e1e;
    min-width: fit-content !important;
    color: #20b068;
    padding: 8px 16px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 400;
    letter-spacing: 1px;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Badge colors for Long/Short - Design 2 */
.tsg-bybit-leverage-badge-2.long {
    background: #153e1e;
    color: #20b068;
}

.tsg-bybit-leverage-badge-2.short {
    background: #512523b5;
    color: #FF6A6F;
}

/* ROI Section for Design 2 */
.tsg-bybit-roi-section-2 {
    margin-bottom: 30px;
}

.tsg-bybit-roi-label-2 {
    color: #b4b4b4;
    font-size: 45px;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
    margin-bottom: 10px;
}

.tsg-bybit-roi-value-2 {
    color: #20b068;
    font-size: 110px;
    font-weight: 700;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
    line-height: 1;
}

.tsg-bybit-roi-value-2.negative {
    color: #ff4757;
}

/* ROI negative styling */
.tsg-bybit-roi-value-2.tsg-negative {
    color: #ff4757;
}

/* Price Details for Design 2 */
.tsg-bybit-price-details-2 {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 50%;
}

.tsg-bybit-price-row-2 {
    display: flex    ;
        justify-content: space-between;
        align-items: flex-start;
        gap: 0;
        flex-direction: column;
}

.tsg-bybit-price-label-2 {
    color: #b4b4b4;
    font-size: 33px;
    min-width: fit-content !important;
    font-weight: 300;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

.tsg-bybit-price-value-2 {
    color: #FFFFFF;
    font-size: 45px;
    font-weight: 400;
    min-width: fit-content !important;
    font-family: 'Roboto', sans-serif;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Footer Section for Design 2 */
.tsg-bybit-footer-2 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: #ffffff;
    z-index: 10;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 40px 30px;
}

.tsg-bybit-logo-section-2 {
    display: flex;
    align-items: center;
    gap: 15px;
}

.tsg-bybit-logo-2 {
    display: flex;
    align-items: center;
    gap: 10px;
}

.tsg-bybit-logo-img-2 {
    height: 40px;
    width: auto;
}


.tsg-bybit-promo-section-2 {
    display: flex;
    flex-direction: column;
    gap: 0px;
    flex: 1;
}

.tsg-bybit-promo-text-2 {
    color: #252525;
    font-size: 38px;
    font-weight: 400;
    font-family: 'Roboto', sans-serif;
    text-align: left;
}

.tsg-bybit-referral-code-2 {
    color: #000000;
    font-size: 55px;
    font-weight: bold;
    font-family: 'Roboto', sans-serif;
    text-align: left;
}

.tsg-bybit-qr-section-2 {
    flex-shrink: 0;
}

.tsg-bybit-qr-container-2 {
    position: relative;
    display: inline-block;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tsg-bybit-qr-image-2 {
    width: 170px;
    height: 80px;
    border-radius: 8px;
    border: 2px solid #ffffff;
    transition: all 0.3s ease;
}

.tsg-bybit-qr-image-2:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 212, 170, 0.3);
}

/* Editable content styling for Bybit Design 2 */
.bybit-design-2-layout [contenteditable="true"] {
    outline: none;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.3s ease;
    cursor: text;
}

.bybit-design-2-layout [contenteditable="true"]:hover {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: rgba(0, 212, 170, 0.5);
}

.bybit-design-2-layout [contenteditable="true"]:focus {
    background-color: rgba(255, 255, 255, 0.15);
    border-color: #00d4aa;
    box-shadow: 0 0 8px rgba(0, 212, 170, 0.3);
}

/* Highlight effect for editable areas */
.bybit-design-2-layout.highlight-editable [contenteditable="true"] {
    background-color: rgba(0, 212, 170, 0.2);
    border-color: #00d4aa;
    animation: pulse 2s infinite;
}

/* Container sizing for Bybit designs */
.tsg-container:has(.bybit-design-1-layout:not([style*="display: none"])) {
    width: 900px !important;
    height: 1133px !important;
}

.tsg-container:has(.bybit-design-2-layout:not([style*="display: none"])) {
    width: 960px !important;
    height: 1320px !important;
}

/* Editable content styling for Bybit */
.bybit-design-1-layout [contenteditable="true"],
.bybit-design-2-layout [contenteditable="true"] {
    outline: none;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.2s ease;
    min-width: 20px;
    display: inline-block;
}

.bybit-design-1-layout [contenteditable="true"]:hover,
.bybit-design-2-layout [contenteditable="true"]:hover {
    border-color: rgba(0, 212, 170, 0.3);
    background-color: rgba(0, 212, 170, 0.1);
}

.bybit-design-1-layout [contenteditable="true"]:focus,
.bybit-design-2-layout [contenteditable="true"]:focus {
    border-color: #00d4aa;
    background-color: rgba(0, 212, 170, 0.15);
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.2);
}

/* Highlight effect for Bybit */
.bybit-design-1-layout .tsg-highlight-effect,
.bybit-design-2-layout .tsg-highlight-effect {
    background-color: rgba(0, 212, 170, 0.2) !important;
    outline: 2px solid #00d4aa !important;
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
}

/* Highlight effect for Bybit QR codes */
.tsg-bybit-qr-container-1.tsg-highlight-effect,
.tsg-bybit-qr-container-2.tsg-highlight-effect {
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
    border-radius: 8px !important;
    background-color: rgba(0, 212, 170, 0.2) !important;
    outline: 2px solid rgba(0, 212, 170, 0.6) !important;
    box-shadow: 0 0 0 4px rgba(0, 212, 170, 0.3) !important;
}

/* Responsive adjustments for Bybit */
@media (max-width: 1200px) {
    .bybit-design-1-layout {
        width: 100%;
        max-width: 900px;
        height: auto;
        aspect-ratio: 900/1133;
    }
    
    .bybit-design-2-layout {
        width: 100%;
        max-width: 960px;
        height: auto;
        aspect-ratio: 960/1320;
    }
}

@media (max-width: 768px) {
    .bybit-design-1-layout,
    .bybit-design-2-layout {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 4/5;
    }
    
    .tsg-bybit-symbol-1,
    .tsg-bybit-symbol-2 {
        font-size: 32px;
    }
    
    .tsg-bybit-roi-value-1,
    .tsg-bybit-roi-value-2 {
        font-size: 56px;
    }
    
    .tsg-bybit-price-value-1,
    .tsg-bybit-price-value-2 {
        font-size: 18px;
    }
    
    .tsg-bybit-promo-text-1,
    .tsg-bybit-promo-text-2 {
        font-size: 16px;
    }
    
    .tsg-bybit-qr-image-1,
    .tsg-bybit-qr-image-2 {
        width: 60px;
        height: 60px;
    }
}

/* ===========================================
   BINANCE DESIGN 5 STYLES (600x635) - POSITIONS VIEW
   =========================================== */

/* Container sizing for Binance Design 5 */
.tsg-container:has(.binance-design-5-layout:not([style*="display: none"])) {
    width: 600px !important;
    height: 635px !important;
}

       /* Binance Design 5 - Positions View Layout */
       .binance-design-5-layout {
           width: 600px;
           height: 635px;
           position: relative;
           overflow: hidden;
           box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
           margin: 0;
           padding: 0;
           background: #1a1a1a;
           font-family: 'Roboto', sans-serif;
       }
       
       .tsg-binance-background-5 {
           position: relative;
           width: 100%;
           height: 100%;
           display: flex;
           flex-direction: column;
           padding: 16px;
           box-sizing: border-box;
           background: #1a1a1a;
       }

       /* Header with Tabs */
       .tsg-binance-header-5 {
           display: flex;
           justify-content: space-between;
           align-items: center;
           margin-bottom: 18px;
           padding-bottom: 12px;
           border-bottom: 1px solid #2a2a2a;
       }
       
       .tsg-binance-tabs-5 {
           display: flex;
           gap: 0;
       }
       
       .tsg-binance-tab-5 {
           padding: 2px 12px;
           cursor: pointer;
           position: relative;
           color: #8a8a8a;
           font-size: 22px;
           letter-spacing: 1px;
           font-weight: 400;
           transition: all 0.2s ease;
       }
       
       .tsg-binance-tab-active-5 {
           color: #e7e7e7;
           font-weight: 400;
       }
       
       .tsg-binance-tab-active-5::after {
           content: '';
           position: absolute;
           bottom: -13px;
           left: 0;
           right: 0;
           height: 6px;
           background: #00d4aa;
       }

       .tsg-binance-header-icon-5 {
           color: #848e9c;
           font-size: 16px;
       }
       
       .tsg-binance-history-icon-5 {
           width: 43px!important;
           height: auto;
           object-fit: contain;
       }

       /* Position Overview Section */
       .tsg-binance-position-overview-5 {
           margin-bottom: 22px;
       }
       
       .tsg-binance-position-header-5 {
           display: flex;
           justify-content: space-between;
           align-items: center;
           margin-bottom: 12px;
       }
       
       .tsg-binance-position-badge-5 {
           background: #00d4aa;
           color: #000000;
           padding: 3px 7px;
           border-radius: 3px;
    font-size: 15px;
    font-weight: 400;
       }
       
       .tsg-binance-symbol-info-5 {
           flex: 1;
           margin-left: 10px;
       }
       
       .tsg-binance-symbol-text-5 {
           color: #ffffff;
           font-size: 21px;
           letter-spacing: 1px;
           font-weight: 400;
       }
       
       .tsg-binance-share-button-5 {
        border: 1px solid #5f5f5f;
                   color: #ffffff;
           padding: 5px 10px;
           font-size: 16px;
           font-weight: 300;
           letter-spacing: 1px;
           cursor: pointer;
           transition: all 0.2s ease;
       }
       
     
       
       .tsg-binance-position-details-5 {
           display: flex;
           justify-content: space-between;
           align-items: center;
       }
       
       .tsg-binance-position-size-5 {
           color: #00d4aa;
           font-size: 22px;
           font-weight: 400;
       }
       
       .tsg-binance-auto-deposit-5 {
           display: flex;
           align-items: center;
           gap: 6px;
       }
       
       .tsg-binance-auto-deposit-text-5 {
           color: #8a8a8a;
           font-size: 18px;
           font-weight: 300;
       }

.tsg-binance-toggle-5 {
    position: relative;
}

       .tsg-binance-toggle-track-5 {
           width: 46px;
           height: 23px;
           background: #2a2a2a;
           border-radius: 9px;
           position: relative;
           cursor: pointer;
           transition: all 0.2s ease;
       }
       
       .tsg-binance-toggle-thumb-5 {
           width: 23px;
           height: 23px;
           background: #8a8a8a;
           border-radius: 50%;
           position: absolute;
           top: 2px;
           left: 2px;
           transition: all 0.2s ease;
       }
       
       .tsg-binance-toggle-track-5.active {
           background: #00d4aa;
       }
       
       .tsg-binance-toggle-track-5.active .tsg-binance-toggle-thumb-5 {
           background: #ffffff;
           transform: translateX(18px);
       }

       /* Key Metrics Section */
       .tsg-binance-metrics-5 {
           margin-bottom: 0px;
       }
       
       .tsg-binance-metrics-row-5 {
           display: grid;
           grid-template-columns: 1fr 1fr 1fr;
           gap: 12px;
           margin-bottom: 0px;
       }
       
       .tsg-binance-metric-5 {
           display: flex;
           flex-direction: column;
           gap: 3px;
       }
       
       .tsg-binance-metric-label-5 {
           color: #8a8a8a;
           font-size: 18px;
           font-weight: 400;
       }
       
       .tsg-binance-metric-value-5 {
        color: #c9c9c9;
        font-size: 21px;
        font-weight: 400;
       }
       
       .tsg-binance-metric-danger-5 {
           color: #ff4757 !important;
       }
       
       .tsg-binance-metric-success-5 {
           color: #00d4aa !important;
       }
       
       .tsg-binance-metric-subvalue-5 {
        color: #5f5f5f;
        font-size: 18px;
        font-weight: 400;
       }

       /* Take Profit / Stop Loss Section */
       .tsg-binance-tp-sl-5 {
           display: flex;
           flex-direction: column;
           justify-content: space-between;
           margin-bottom: 22px;
           padding: 12px 0;
           gap:0px;
       }
       
       .tsg-binance-tp-sl-item-5 {
           display: flex;
           justify-content: space-between;
           align-items: center;
           width: 100%; padding: 12px 0;
           border-top: 1px solid #2a2a2a;
           border-bottom: 1px solid #2a2a2a;
       }
       
       .tsg-binance-tp-sl-label-5 {
        color: #ababab;
        font-size: 20px;
        font-weight: 400;
       }
       
       .tsg-binance-tp-sl-button-5 {
        color: #565657;
        font-size: 20px;
        font-weight: 400;
           cursor: pointer;
           transition: all 0.2s ease;
       }
       
       .tsg-binance-tp-sl-button-5:hover {
           color: #00d4aa;
       }
       
       .tsg-binance-set-text-5 {
           font-size: 20px;
       }
       
       /* Bottom Action Buttons */
       .tsg-binance-action-buttons-5 {
           display: flex;
           gap: 20px;
           margin-top: auto;
       }
       
       .tsg-binance-action-button-5 {
           flex: 1;
           padding: 15px;
           border-radius: 5px;
           cursor: pointer;
           text-align: center;
           transition: all 0.2s ease;
           border: none;
           border:solid 1px #3a3a3a
       }
       
       .tsg-binance-limit-close-5,   .tsg-binance-market-close-5 {
           color: #00d4aa;
       }
       
     
    
       
       .tsg-binance-action-text-5 {
        font-size: 18px;
        font-weight: 300;
        letter-spacing: 1px;
       }

/* Editable content styling for Binance Design 5 */
.binance-design-5-layout [contenteditable="true"] {
    outline: none;
    border: 2px solid transparent;
    border-radius: 4px;
    padding: 2px 4px;
    transition: all 0.2s ease;
    min-width: 20px;
    display: inline-block;
}

.binance-design-5-layout [contenteditable="true"]:hover {
    border-color: rgba(0, 212, 170, 0.3);
    background-color: rgba(0, 212, 170, 0.1);
}

.binance-design-5-layout [contenteditable="true"]:focus {
    border-color: #00d4aa;
    background-color: rgba(0, 212, 170, 0.15);
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.2);
}

/* Highlight effect for Binance Design 5 */
.binance-design-5-layout .tsg-highlight-effect {
    background-color: rgba(0, 212, 170, 0.2) !important;
    outline: 2px solid #00d4aa !important;
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
}

/* Responsive adjustments for Binance Design 5 */
@media (max-width: 768px) {
    .binance-design-5-layout {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 600/635;
    }
    
    .tsg-binance-metrics-row-5 {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .tsg-binance-action-buttons-5 {
        flex-direction: column;
    }
}

/* ===========================================
   BYBIT DESIGN 3 - 585x1266px (Mobile)
   =========================================== */

.bybit-design-3-layout {
    width: 585px;
    height: 1266px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    border-radius: 20px;
    background: #121212;
    font-family: 'Roboto', sans-serif;
}

.tsg-bybit-background-3 {
    width: 100%;
    height: 100%;
    position: relative;
    background: #121212;
    color: white;
}

/* Status Bar */
.tsg-bybit-status-bar-3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 20px;
    background: #121212;
}

.tsg-bybit-time-3 {
    font-size: 16px;
    font-weight: 600;
    color: white;
}

.tsg-bybit-status-icons-3 {
    display: flex;
    align-items: center;
    gap: 8px;
}



.tsg-bybit-battery-container-3 {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tsg-bybit-battery-percentage-3 {
    font-size: 14px;
    color: white;
    font-weight: 600;
}

.tsg-bybit-battery-icon-3 {
    font-size: 16px;
    color: white;
}



/* Header */
.tsg-bybit-header-3 {
    display: flex;
    align-items: flex-start;
    padding: 16px 20px;
    background: #121212;
    flex-direction: column;
}

.tsg-bybit-back-button-3 {
    font-size: 20px;
    color: white;
    margin-right: 16px;
    cursor: pointer;
}

.tsg-bybit-title-3 {
    font-size: 30px;
    font-weight: 500;
    color: white;
}

/* Navigation Tabs */
.tsg-bybit-tabs-3 {
    display: flex;
    padding: 0 20px;
    background: #121212;
    gap:27px;
    border-bottom: 1px solid #333;
}

.tsg-bybit-tab-3 {
    padding: 12px 0px;
    font-size: 20px;
    color: #999;
    
    position: relative;
}

.tsg-bybit-tab-active-3 {
    color: white;
    font-weight: 400;
}

.tsg-bybit-tab-active-3::after {
    content: '';
    position: absolute;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: #ffa500;
    border-radius: 2px;

    left: 50%;
    transform: translateX(-50%);
}

/* Filter */
.tsg-bybit-filter-3 {
    display: flex    ;
        align-items: center;
        justify-content: flex-start;
        padding: 12px 20px;
        gap: 8px;
        background: #121212;
        border-bottom: 1px solid #333;
}

.tsg-bybit-filter-text-3 {
    font-size: 19px;
    color: #b9b9b9;
}

.tsg-bybit-filter-arrow-3 {
    font-size: 24px;
    color: #999;
}

/* Position Card */
.tsg-bybit-position-card-3 {
    margin: 20px;
    background: #19181d;
    border-radius: 12px;
    padding: 20px;
    border: 1px solid #333;
}

/* Card Header */
.tsg-bybit-card-header-3 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tsg-bybit-symbol-3 {
    font-size: 20px;
    font-weight: 700;
    color: white;
}

.tsg-bybit-position-badges-3 {
    display: flex    ;
        gap: 8px;
        align-items: center;
}

.tsg-bybit-long-badge-3 {
    background: #153e1e;
    color: #20b068;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
}

.tsg-short-badge-3 {
    background: #3e1515;
    color: #FF6A6F;
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.tsg-bybit-leverage-badge-3 {
    background: #51462e;
    color: rgb(255, 165, 0);
    padding: 4px 8px;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
}

.tsg-bybit-expand-icon-3 {
    font-size: 16px;
    color: white;
    cursor: pointer;
}

/* Metrics */
.tsg-bybit-metrics-3 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tsg-bybit-metric-row-3 {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tsg-bybit-metric-label-3 {
    font-size: 16px;
    color: #ccc;
}

.tsg-bybit-metric-value-3 {
    font-size: 16px;
    font-weight: 500;
}

.tsg-bybit-positive-3 {
    color: #20b068;
}

.tsg-bybit-negative-3 {
    color: #FF6A6F;
}

.tsg-bybit-orange-3 {
    color: #ffa500;
}

.tsg-bybit-disabled-3 {
    color: #999;
}

.tsg-bybit-disabled-3 i {
    font-size: 12px;
}



/* ADL Ranking Bars */
.tsg-bybit-adl-bars-3 {
    display: flex;
    gap: 2px;
}

.tsg-bybit-adl-bar-3 {
    width: 4px;
    transform: rotate(23deg);
    height: 15px;
    background: #333;
    border-radius: 2px!important;
}

.tsg-bybit-adl-active-3 {
    background: #ff69b4;
}

/* Action Button */
.tsg-bybit-action-button-3 {
    width: 100%;
    background: #33333354;
    color: #aeaeae;
    border: none;
    padding: 16px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 400;
    margin-top: 20px;
    cursor: pointer;
    text-align: center;
}

/* Bottom Bar */
.tsg-bybit-bottom-bar-3 {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 40%;
    height: 5px;
    background: white;
    border-radius: 3px;
}

/* ===========================================
   BYBIT DESIGN 4 - 828x719px (Desktop)
   =========================================== */

.bybit-design-4-layout {
    width: 828px;
    height: 719px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  
    background: #1a1a1a;
    font-family: 'Roboto', sans-serif;
}

.tsg-bybit-background-4 {
    width: 100%;
    height: 100%;
    position: relative;
    background: #1a1a1a;
    color: white;
}

/* Header with Tabs */
.tsg-bybit-header-4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.tsg-bybit-tabs-4 {
    display: flex;
    gap: 30px;
}

.tsg-bybit-tab-4 {
    position: relative;
    cursor: pointer;
}

.tsg-bybit-tab-text-4 {
    font-size: 33px;
    color: #999;
    font-weight: 400;
}

.tsg-bybit-tab-active-4 .tsg-bybit-tab-text-4 {
    color: white;
    font-weight: 400;
}

.tsg-bybit-tab-underline-4 {
    position: absolute;
    bottom: -8px;
    width: 40%;
    height: 3px;
    background: #ffa500;
    border-radius: 2px;
    left: 50%;
    transform: translateX(-50%);
}

.tsg-bybit-refresh-4 {
    font-size: 20px;
    color: #999;
    cursor: pointer;
}

.tsg-bybit-refresh-4 i {
    font-size: 20px;
}

/* Global Actions */
.tsg-bybit-global-actions-4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 20px;
    background: #1a1a1a;
    border-bottom: 1px solid #333;
}

.tsg-bybit-checkbox-4 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tsg-bybit-checkbox-4 input[type="checkbox"] {
    width: 22px;
    height: 22px;
    appearance: none;
    border: 2px solid #ffffff;
    border-radius: 1px;
    background: transparent;
    position: relative;
    cursor: pointer;
}

.tsg-bybit-checkbox-4 input[type="checkbox"]:checked {
    background: transparent;
    border-color: #00d4aa;
}

.tsg-bybit-checkbox-4 input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: -2px;
    left: 2px;
    color: #00d4aa;
    font-size: 22px;
    font-weight: bold;
}

.tsg-bybit-checkbox-4 label {
    font-size: 24px;
    color: #a4a4a4;
    cursor: pointer;
}

.tsg-bybit-close-all-4 {
    background: #575757;
    color: white;
    border: none;
    padding: 8px 16px !important;
    border-radius: 10px;
    font-size: 22px;
   
}

/* Position Details */
.tsg-bybit-position-details-4 {
    padding: 20px;
    background: #1a1a1a;
}

/* Position Header */
.tsg-bybit-position-header-4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2px;
}

.tsg-bybit-symbol-section-4 {
    display: flex;
    align-items: center;
    gap: 36px;
}

.tsg-bybit-symbol-4 {
    font-size: 30px;
    font-weight: 400;
    color: white;
}

.tsg-bybit-signal-bars-4 {
    display: flex;
    gap: 4px;
}

.tsg-bybit-signal-bar-4 {
    width: 4px;
    height: 16px;
    background: #00d4aa;
    border-radius: 1px;
}

.tsg-bybit-signal-bar-4:nth-child(1),
.tsg-bybit-signal-bar-4:nth-child(2) {
    background: #00d4aa;
}

.tsg-bybit-signal-bar-4:nth-child(3),
.tsg-bybit-signal-bar-4:nth-child(4),
.tsg-bybit-signal-bar-4:nth-child(5) {
    background: #666;
}

.tsg-bybit-expand-icon-4 {
    font-size: 18px;
    color: #999;
    cursor: pointer;
}

.tsg-bybit-expand-icon-4 img {
    width: 34px;
}

/* Position Type & Leverage */
.tsg-bybit-position-type-4 {
    display: flex;
    gap: 8px;
    margin-bottom: 24px;
}

.tsg-bybit-sell-badge-4 {
    background: #3e1515;
    color: #FF6A6F;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 23px;
    font-weight: 400;
}

.tsg-buy-badge-4 {
    background: #153e1e;
    color: #20b068;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 23px;
    font-weight: 400;
}

.tsg-bybit-isolated-badge-4 {
    background: #212123;
    color: #9d9d9d;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 23px;
    font-weight: 400;
}

.tsg-bybit-leverage-badge-4 {
    background: #212123;
    color: #9d9d9d;
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 23px;
    font-weight: 400;
    display: flex !important;
    align-items: center;
}

/* Metrics Grid */
.tsg-bybit-metrics-grid-4 {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 16px;
    margin-bottom: 20px;
}

.tsg-bybit-metrics-column-4 {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.tsg-bybit-metric-item-4 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tsg-bybit-metric-label-4 {
    font-size: 24px;
    color: #9d9d9d;
    letter-spacing: 0.5px;
}

.tsg-bybit-metric-value-4 {
    font-size: 26px;
    font-weight: 400;
    color: white;
}

.tsg-bybit-positive-4 {
    color: #0bc568;
}

.tsg-bybit-orange-4 {
    color: #ffa500;
}

.tsg-bybit-disabled-4 {
    color: #999;
}

.tsg-bybit-disabled-4 i {
    font-size: 22px;
}

.tsg-bybit-negative-4 {
    color: #FF6A6F;
}

.tsg-bybit-disabled-4 span {
    color: #fff;
}

/* Action Buttons */
.tsg-bybit-action-buttons-4 {
    display: flex;
    gap: 12px;
    justify-content: center;
    position: absolute;
    bottom: 0px;
    width: 100%;
    right: 0px;
    padding: 20px;
}
.tsg-bybit-network-icon-3 {    height: 32px!important;}


.tsg-bybit-action-btn-4 {
    background: #323232;
    color: #eeeeee;
    border: none;
    padding: 12px 24px !important;
    border-radius: 6px;
    font-size: 23px;
    font-weight: 400;
    cursor: pointer;
    width: 100%;
}

/* Editable content styling for Bybit Design 3 & 4 */
.bybit-design-3-layout [contenteditable="true"],
.bybit-design-4-layout [contenteditable="true"] {
    outline: none;
    border: 2px solid transparent;
  
    padding: 2px 4px;
    transition: all 0.2s ease;
   
    display: inline-block;
}

.bybit-design-3-layout [contenteditable="true"]:hover,
.bybit-design-4-layout [contenteditable="true"]:hover {
    border-color: rgba(0, 212, 170, 0.3);
    background-color: rgba(0, 212, 170, 0.1);
}

.bybit-design-3-layout [contenteditable="true"]:focus,
.bybit-design-4-layout [contenteditable="true"]:focus {
    border-color: #00d4aa;
    background-color: rgba(0, 212, 170, 0.15);
    box-shadow: 0 0 0 2px rgba(0, 212, 170, 0.2);
}

/* Highlight effect for Bybit Design 3 & 4 */
.bybit-design-3-layout .tsg-highlight-effect,
.bybit-design-4-layout .tsg-highlight-effect {
    background-color: rgba(0, 212, 170, 0.2) !important;
    outline: 2px solid #00d4aa !important;
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
}

/* Container sizing for Bybit Design 3 & 4 */
.tsg-container:has(.bybit-design-3-layout:not([style*="display: none"])) {
    width: 585px !important;
    height: 1266px !important;
}

.tsg-container:has(.bybit-design-4-layout:not([style*="display: none"])) {
    width: 828px !important;
    height: 719px !important;
}

/* Responsive adjustments for Bybit Design 3 & 4 */
@media (max-width: 1200px) {
    .bybit-design-3-layout {
        width: 100%;
        max-width: 585px;
        height: auto;
        aspect-ratio: 585/1266;
    }
    
    .bybit-design-4-layout {
        width: 100%;
        max-width: 828px;
        height: auto;
        aspect-ratio: 828/719;
    }
}

@media (max-width: 768px) {
    .bybit-design-3-layout,
    .bybit-design-4-layout {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 4/5;
    }
    
    .tsg-bybit-metrics-grid-4 {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .tsg-bybit-action-buttons-4 {
        flex-direction: column;
    }
}

/* ===========================================
   OKX DESIGN 1 - 666x888px
   =========================================== */

.okx-design-1-layout {
    width: 666px;
    height: 888px;
    position: relative;
    overflow: hidden;
    background: #1A1A1A;
    font-family: 'Roboto', sans-serif;
}

.tsg-okx-background-1 {
    position: relative;
    width: 100%;
    height: 100%;
    font-family: 'Poppins';
}

.header-okx-1-custom {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    display: flex;
    padding: 20px;
    align-items: center;
    justify-content: space-between;
    z-index: 10;
}

.tsg-okx-bg-img-1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.tsg-okx-logo-1 {
  
    z-index: 10;
}

.tsg-okx-logo-img-1 {
    width: 150px;
    height: 60px;
}

.tsg-okx-share-date-1 {
    font-size: 19px;
    color: #a3a3a3;
    z-index: 10;
}

.tsg-okx-user-profile-1 {
    position: absolute;
    top: 130px;
    left: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 10;
}

.tsg-okx-avatar-container-1 {
    position: relative;
    display: inline-block;
    cursor: pointer;
}

.tsg-okx-avatar-1 {
    width: 90px;
    height: 90px;
    border:solid 2px #fff;
    border-radius: 50%;
    overflow: hidden;
    transition: all 0.3s ease;
}

.tsg-okx-avatar-1:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 187, 106, 0.3);
}

.tsg-okx-avatar-img-1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tsg-okx-username-1 {
    font-size: 26px;
    color: white;
    font-weight: 500;
}

.tsg-okx-asset-info-1 {
    position: absolute;
    top: 250px;
    left: 20px;
    z-index: 10;
}

.tsg-okx-asset-name-1 {
    margin-bottom: 5px;
}

.tsg-okx-asset-symbol-1 {
    font-size: 30px;
    text-transform: uppercase;
    color: white;
    font-weight: 500;
}

.tsg-okx-asset-full-1 {
    font-size: 30px;
    color: #9d9d9d;
}

.tsg-okx-asset-type-1 {
    font-size: 22px;
    color: #9d9d9d;
}

.tsg-okx-metrics-1 {
    position: absolute;
    top: 400px;
    left: 20px;
    z-index: 10;
}

.tsg-okx-pnl-section-1 {
    margin-bottom: 30px;
    display: flex;
    flex-direction: column;
}

.tsg-okx-pnl-label-1 {
    font-size: 22px;
    color: #9d9d9d;
    margin-bottom: 5px;
}

.tsg-okx-pnl-value-1 {
    font-size: 70px;
    font-weight: 600;
    color: #35ad35;
    line-height: 0.9;
}

.tsg-okx-price-section-1 {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.tsg-okx-price-item-1 {
    display: flex;
    flex-direction: column;
   
}

.tsg-okx-price-label-1 {
    font-size: 20px;
    color: #9d9d9d;
}

.tsg-okx-price-value-1 {
    font-size: 20px;
    color: #d0d0d0;
    font-weight: 400;
}

.tsg-okx-invitation-1 {
    position: absolute;
    bottom: 00px;
    left: 20px;
    z-index: 10;
    width: 100%;
}

.tsg-okx-invite-code-1 {
    display: flex    ;
        gap: 0px;
        margin-bottom: -10px;
}

.tsg-okx-invite-label-1 {
    font-size: 20px;
    color: #eeeeee;

}

.tsg-okx-invite-value-1 {
    font-size: 20px;
    color: #eeeeee;
    font-weight: 400;
}

.tsg-okx-invite-text-1 {
    font-size: 17px;
    color: #d3d3d3;
    margin-bottom: 15px;
}

.tsg-okx-qr-container-1 {
    position: absolute;
    bottom: 15px;
    right: 40px;
    z-index: 10;
    cursor: pointer;
}

.tsg-okx-qr-code-1 {
    position: relative;
}

.tsg-okx-qr-img-1 {
    width: 80px;
    height: 60px;
    border: 1px solid #ccc;
    border-radius: 3px!important;
}



/* ===========================================
   OKX DESIGN 2 - 940x614px
   =========================================== */

.okx-design-2-layout {
    width: 940px;
    height: 614px;
    position: relative;
    overflow: hidden;
    background: #1A1A1A;
    font-family: 'Roboto', sans-serif;
}

.tsg-okx-background-2 {
    position: relative;
    width: 100%;
    height: 100%;
}

.tsg-okx-bg-img-2 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.tsg-okx-logo-2 {
    position: absolute;
    top: 30px;
    left: 30px;
    z-index: 10;
}

.tsg-okx-logo-img-2 {
    width: 130px;
    height: 50px;
}

.tsg-okx-trading-info-2 {
    position: absolute;
    top: 100px;
    left: 20px;
    z-index: 10;
    color: white;
}

.tsg-okx-trading-pair-2 {
    font-size: 32px;
    font-weight: 400;
    color: white;
    margin-bottom: 10px;
}

.tsg-okx-position-info-2 {
    font-size: 19px;
    margin-bottom: 20px;
}

.tsg-okx-position-type-2 {
    color: #66BB6A;
    font-weight: 600;
}

.tsg-okx-separator-2 {
    color: #b1b1b1;
}

.tsg-okx-leverage-2 {
    color: #b1b1b1;
}

.tsg-okx-pnl-section-2 {
    margin-bottom: 20px;
    display: flex;
    justify-content: flex-start;
    flex-direction: column;
}

.tsg-okx-pnl-label-2 {
    font-size: 20px;
    color: #b1b1b1;
    margin-bottom: 5px;
}

.tsg-okx-pnl-value-2 {
    font-size: 96px;
    color: #66BB6A;
    font-weight: 500;
    line-height: 0.9;
}

.tsg-okx-price-info-2 {
    display: flex;
    flex-direction: row;
    gap: 20px;
  }

.tsg-okx-price-row-2 {
    display: flex;
    flex-direction: column;
 
    min-width: 120px;
}

.tsg-okx-price-label-2 {
    font-size: 18px;
    color: #dbdbdb;
}

.tsg-okx-price-value-2 {
    font-size: 18px;
    color: #dbdbdb;
    font-weight: 400;
}

.tsg-okx-qr-section-2 {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap:0px
}

.tsg-okx-qr-code-2 {
    margin-bottom: 10px;
    text-align: right;
}

.tsg-okx-qr-img-2 {
    width: 80px;
    height: 80px;
    border: 2px solid white;
    border-radius: 5px!important;
}

.tsg-okx-qr-text-2 {
    font-size: 16px;
    color: #dbdbdb;
}

.tsg-okx-reward-text-2 {
    font-size: 16px;
    color: #FFA500;
}

.tsg-okx-share-date-2 {
    position: absolute;
    bottom: 20px;
    left: 20px;
    font-size: 16px;
    color: #dbdbdb;
    z-index: 10;
}



/* ===========================================
   OKX DESIGN 3 - 1126x615px
   =========================================== */

.okx-design-3-layout {
    width: 1126px;
    height: 615px;
    position: relative;
    overflow: hidden;
    background: #1A1A1A;
    font-family: 'Roboto', sans-serif;
}

.tsg-okx-background-3 {
    position: relative;
    width: 100%;
    height: 100%;    
    font-family: 'Poppins';
}

.tsg-okx-bg-img-3 {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    top: 0;
    left: 0;
    z-index: 1;
}

.tsg-okx-logo-3 {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 10;
}

.tsg-okx-logo-img-3 {
    width: 180px;
    height: 60px;
}

.tsg-okx-trading-info-3 {
    position: absolute;
    top: 150px;
    left: 20px;
    z-index: 10;
    color: white;
}

.tsg-okx-trading-pair-3 {
    font-size: 50px;
    font-weight: 400;
    color: white;
    margin-bottom: 10px;
}

.tsg-okx-position-info-3 {
    font-size: 19px;
    margin-bottom: 20px;
}

.tsg-okx-position-type-3 {
    color: #66BB6A;
    font-weight: 600;
}

.tsg-okx-separator-3 {
    color: #C7C7C8;
}

.tsg-okx-leverage-3 {
    color: #C7C7C8;
}


.tsg-okx-pnl-section-3 {
    margin-bottom: 20px;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.tsg-okx-pnl-label-3 {
font-size: 20px;
    color: #C7C7C8;  
}

.tsg-okx-pnl-value-3 {
    font-size: 96px;
    font-weight: 500;
    color: #ea4b4b;
    line-height: 0.9;
}

.tsg-okx-price-info-3 {
    display: flex;
    flex-direction: row;
    gap: 20px;
}

.tsg-okx-price-row-3 {
    display: flex;
    flex-direction: column;
 
    min-width: 120px;
}

.tsg-okx-price-label-3 {
    font-size: 18px;
    color: #dbdbdb;
    min-width: fit-content;
}

.tsg-okx-price-value-3 {
    font-size: 18px;
    color: #dbdbdb;
}


/* ===========================================
   OKX DESIGN 4 - 680x483px
   =========================================== */

.okx-design-4-layout {
    width: 680px;
    height: 483px;
    position: relative;
    background: #1A1A1A;
    font-family: 'Poppins', sans-serif;
    display: flex;
    justify-content: center;
    padding: 20px!important;
    box-sizing: border-box;
}

.tsg-okx-dashboard-container-4 {
    background: #2A2A2A;
    border-radius: 12px;
    padding: 24px;
    width: 100%;
  
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.tsg-okx-dashboard-header-4 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.tsg-okx-balance-section-4 {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.tsg-okx-balance-label-4 {
    font-size: 18px;
    color: #a3a3a3;
    font-weight: 400;
}

.tsg-okx-balance-value-4 {
    font-size: 45px;
    font-weight: 500;
    color: white;
    line-height: 1;
}

.tsg-okx-performance-4 {
    display: flex;
    align-items: center;
    gap: 12px;
}



.tsg-okx-performance-value-4 {
    font-size: 24px;
    color: #66BB6A;
    font-weight: 500;
}

.tsg-okx-timeframe-4 {
    margin-top: 0;
}

.tsg-okx-ytd-button-4 {
    background: #555;
    color: #f6f6f6;
    padding: 6px 12px !important;
    border-radius: 10px;
    font-size: 20px;
    cursor: pointer;
    font-family: 'Poppins';
    display: flex !important
;
    align-items: center;
    gap: 4px;
}



.tsg-okx-profit-breakdown-4 {
    width: 100%;
}

.tsg-okx-profit-item-4 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 2px solid #444;
}

.tsg-okx-profit-item-4:last-child {
    border-bottom: none;
}

.tsg-okx-profit-label-4 {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 20px;
    color: #a3a3a3;
    font-weight: 400;
}

.tsg-okx-info-icon-4 {
    width: 14px;
    height: 14px;
    border: 1px solid #a3a3a3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    color: #CCCCCC;
    font-weight: bold;
}

.tsg-okx-profit-values-4 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tsg-okx-profit-badge-4, .tsg-okx-performance-badge-4  {
    background: #146718;
    color: #62bb69;
    padding: 0px 10px !important;
    border-radius: 4px;
    font-size: 20px;
    font-weight: 400;
}

.tsg-okx-profit-amount-4 {
    font-size: 20px;
    color: #66BB6A;
    font-weight: 500;
}

.tsg-okx-profit-value-4 {
    font-size: 20px;
    color: #d9d9d9;
    font-weight: 500;
}

/* Container sizing for OKX designs */
.tsg-container:has(.okx-design-1-layout:not([style*="display: none"])) {
    width: 666px !important;
    height: 888px !important;
}

.tsg-container:has(.okx-design-2-layout:not([style*="display: none"])) {
    width: 940px !important;
    height: 614px !important;
}

.tsg-container:has(.okx-design-3-layout:not([style*="display: none"])) {
    width: 1126px !important;
    height: 615px !important;
}

.tsg-container:has(.okx-design-4-layout:not([style*="display: none"])) {
    width: 680px !important;
    height: 483px !important;
}

/* Editable content styling for OKX designs */
.okx-design-1-layout [contenteditable="true"],
.okx-design-2-layout [contenteditable="true"],
.okx-design-3-layout [contenteditable="true"],
.okx-design-4-layout [contenteditable="true"] {
    outline: none;
    border: 2px solid transparent;
    padding: 2px 4px;
    transition: all 0.2s ease;
    display: inline-block;
}

.okx-design-1-layout [contenteditable="true"]:hover,
.okx-design-2-layout [contenteditable="true"]:hover,
.okx-design-3-layout [contenteditable="true"]:hover,
.okx-design-4-layout [contenteditable="true"]:hover {
    border-color: rgba(102, 187, 106, 0.3);
    background-color: rgba(102, 187, 106, 0.1);
}

.okx-design-1-layout [contenteditable="true"]:focus,
.okx-design-2-layout [contenteditable="true"]:focus,
.okx-design-3-layout [contenteditable="true"]:focus,
.okx-design-4-layout [contenteditable="true"]:focus {
    border-color: #66BB6A;
    background-color: rgba(102, 187, 106, 0.15);
    box-shadow: 0 0 0 2px rgba(102, 187, 106, 0.2);
}

/* Highlight effect for OKX designs */
.okx-design-1-layout .tsg-highlight-effect,
.okx-design-2-layout .tsg-highlight-effect,
.okx-design-3-layout .tsg-highlight-effect,
.okx-design-4-layout .tsg-highlight-effect {
    background-color: rgba(102, 187, 106, 0.2) !important;
    outline: 2px solid #66BB6A !important;
    animation: highlight-pulse 1.5s ease-in-out infinite !important;
}

/* Preserve absolute positioning for OKX elements with highlight */
.okx-design-1-layout .tsg-okx-logo-1.tsg-highlight-effect,
.okx-design-1-layout .tsg-okx-share-date-1.tsg-highlight-effect,
.okx-design-1-layout .tsg-okx-user-profile-1.tsg-highlight-effect,
.okx-design-1-layout .tsg-okx-asset-info-1.tsg-highlight-effect,
.okx-design-1-layout .tsg-okx-metrics-1.tsg-highlight-effect,
.okx-design-1-layout .tsg-okx-invitation-1.tsg-highlight-effect,
.okx-design-1-layout .tsg-okx-qr-code-1.tsg-highlight-effect,
.okx-design-2-layout .tsg-okx-logo-2.tsg-highlight-effect,
.okx-design-2-layout .tsg-okx-trading-info-2.tsg-highlight-effect,
.okx-design-2-layout .tsg-okx-qr-section-2.tsg-highlight-effect,
.okx-design-2-layout .tsg-okx-share-date-2.tsg-highlight-effect,
.okx-design-3-layout .tsg-okx-logo-3.tsg-highlight-effect,
.okx-design-3-layout .tsg-okx-trading-info-3.tsg-highlight-effect,
.okx-design-4-layout .tsg-okx-dashboard-container-4.tsg-highlight-effect {
    position: absolute !important;
}

/* Preserve flex layout for OKX header container */
.okx-design-1-layout .header-okx-1-custom.tsg-highlight-effect {
    position: static !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 20px !important;
}

/* Responsive adjustments for OKX designs */
@media (max-width: 1200px) {
    .okx-design-1-layout {
        width: 100%;
        max-width: 666px;
        height: auto;
        aspect-ratio: 666/888;
    }
    
    .okx-design-2-layout {
        width: 100%;
        max-width: 940px;
        height: auto;
        aspect-ratio: 940/614;
    }
}

@media (max-width: 768px) {
    .okx-design-1-layout,
    .okx-design-2-layout {
        width: 100%;
        max-width: 400px;
        height: auto;
        aspect-ratio: 4/5;
    }
    
    .tsg-okx-trading-pair-1 {
        font-size: 1.8em;
    }
    
    .tsg-okx-pnl-value-1 {
        font-size: 4em;
    }
    
    .tsg-okx-pnl-value-2 {
        font-size: 2.5em;
    }
    
}

/* ===========================================
   OKX Dynamic Colors
   =========================================== */

/* OKX Trade Type Colors */
.tsg-okx-position-type-1.long,
.tsg-okx-position-type-2.long,
.tsg-okx-position-type-3.long {
    color: #66BB6A !important;
}

.tsg-okx-position-type-1.short,
.tsg-okx-position-type-2.short,
.tsg-okx-position-type-3.short {
    color: #FF6B6B !important;
}

/* OKX PnL Colors */
.tsg-okx-pnl-value-1.positive,
.tsg-okx-pnl-value-2.positive,
.tsg-okx-pnl-value-3.positive {
    color: #66BB6A !important;
}

.tsg-okx-pnl-value-1.negative,
.tsg-okx-pnl-value-2.negative,
.tsg-okx-pnl-value-3.negative {
    color: #FF6B6B !important;
}

/* ===========================================
   MOON X DESIGN 1 (936x624px)
   =========================================== */

.tsg-moon-x-container-1 {
    width: 936px;
    height: 624px;
    position: relative;
    background: #0A0A0A;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
}

.tsg-moon-x-background-1 {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.tsg-moon-x-bg-image-1 {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tsg-moon-x-content-1 {
    position: relative;
    z-index: 2;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 45px 80px;
}

.tsg-moon-x-top-left-1 {
    display: flex;
    flex-direction: column;
    gap: 15px;
    flex: 1;
}

.tsg-moon-x-logo-1 {
    display: flex;
    align-items: center;
    gap: 0;
}

.tsg-moon-x-logo-image {
    width: 160px;
    object-fit: contain;
    filter: brightness(1.1) contrast(1.1);
}

.tsg-moon-x-tags-1 {
    display: flex;
    gap: 8px;
    margin-top: 5px;
}

.tsg-moon-x-tag {
    background: #161616;
    border-radius: 10px;
    padding: 5px 26px;
    font-size: 20px;
    color: white;
    font-weight: 500;
}

.tsg-moon-x-performance-1 {
    display: flex;
    align-items: baseline;
    gap: 10px;
    margin-top: 10px;
}

.tsg-moon-x-percentage {
    font-size: 76px;
    font-weight: 700;
    color: #00ff4f;
    line-height: 1;
}

.tsg-moon-x-usdt {
    font-size: 25px;
    color: #00ff4f;
    font-weight: 500;
}

.tsg-moon-x-trade-details-1 {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-top: 15px;
}

.tsg-moon-x-price-row {
    display: flex    ;
        flex-direction: column;
        gap: 2px;
        margin-bottom: 44px;
}

.tsg-moon-x-price-label {
    font-size: 20px;
    color: white;
    font-weight: 400;
}

.tsg-moon-x-price-value {
    font-size: 22px;
    color: white;
    font-weight: 700;
}

.tsg-moon-x-timestamp-1 {
    font-size: 16px;
    margin-top: 70px !important;
    color:#a4a4a4;
    font-family: Poppins;
    margin-bottom: 10px;
}


.tsg-moon-x-referral-1 {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 3;
}

.tsg-moon-x-referral-box {
    background: #001103;
    border-radius: 8px;
    border: 1px solid #0a431447;
    padding: 12px;
    display: flex;
    flex-direction: row;
    gap: 20px;
    min-width: 100px;
    position: absolute;
    bottom: 20px;
    right: 40px;
}

.tsg-moon-x-referral-label {
    font-size: 16px;
    color: #b0b0b0;
    font-weight: 400;
}

.moon-box-content-custom {
    display: flex
    ;
        flex-direction: column;
        gap: 10px;
        justify-content: center;

}

.tsg-moon-x-referral-code {
    font-size: 30px;
    color: white;
    font-weight: 700;
    letter-spacing: 1px;
}

.tsg-moon-x-qr-code {
    width: 80px;
}

.tsg-moon-x-qr-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    cursor: pointer;
    transition: opacity 0.2s ease;    border-radius: 8px !important;

}

.tsg-moon-x-qr-image:hover {
    opacity: 0.8;
}

/* ===========================================
   MOON X DESIGN 2 (1019x969px)
   =========================================== */

.tsg-moon-x-container-2 {
    width: 1019px;
    height: 969px;
    background: #11292b;
    padding: 40px;
    font-family: 'poppins', sans-serif;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.tsg-moon-x-header-2 {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.tsg-moon-x-symbol-section {
    display: flex;
    align-items: center;
   
}

.tsg-moon-x-symbol {
    font-size: 50px;
    font-weight: 700;
    color: white;
    margin-right: 15px;
}

.tsg-moon-x-position-type {
    background: #5ea4744a;
    color: #78ff8c;
    padding: 4px 16px;
    border-radius: 8px;
    letter-spacing: 1px;
    font-size: 26px;
    font-weight: 500;
}

.tsg-moon-x-leverage-section {
    display: flex;
    gap: 8px;
    align-items: center;
}

.tsg-moon-x-leverage {
    background: #6164624a;
    color: #78ff8c;
    padding: 4px 16px;
    border-radius: 8px;
    letter-spacing: 1px;
    font-size: 26px;
    font-weight: 400;
}

.tsg-moon-x-margin-mode {
    background: #6164624a;
    color: #b3b3b3;
    padding: 4px 16px;
    border-radius: 8px;
    font-size: 26px;
    font-weight: 400;
}

.tsg-moon-x-position-id-2 {
    background: #192728;
    border: 1px solid #333;
    border-radius: 12px;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tsg-moon-x-position-id-label {
    color: #999;
    font-size: 30px;
    font-weight: 400;
}

.tsg-moon-x-position-id-value {
    display: flex;
    align-items: center;
    gap: 18px;
    color: #999;
    letter-spacing: 1px;
    font-size: 30px;
    font-weight: 500;
    font-family: monospace;
}

.tsg-moon-x-copy-icon {
    width: 65px;
    height: 28px;
    display: flex
;
    align-items: center;
    justify-content: center;
}

.tsg-moon-x-metrics-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin: 30px 0;
}

.tsg-moon-x-metrics-left,
.tsg-moon-x-metrics-right {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.tsg-moon-x-metric-row {
    display: flex;
    align-items: flex-start;
    border-bottom: 1px solid #222;
    flex-direction: column;
}

.tsg-moon-x-metric-label {
    color: #acacac;
    font-size: 30px;
    font-weight: 300;
}

.tsg-moon-x-metric-value {
    color: white;
    font-size: 40px;
    font-weight: 400;
}

.tsg-moon-x-positive {
    color: #00ff4a !important;
}

.tsg-moon-x-tpsl-2 {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 0;
    border-top: 2px solid #ffffff24;
}

.tsg-moon-x-tpsl-label {
    color: #acacac;
    font-size: 30px;
    font-weight: 300;
}

.tsg-moon-x-tpsl-buttons {
    display: flex;
    gap: 10px;
}

.tsg-moon-x-tp-button,
.tsg-moon-x-sl-button {
    background: #ffffff;
    color: #414141;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 33px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s 
ease;
}

.tsg-moon-x-tp-button:hover,
.tsg-moon-x-sl-button:hover {
    background: #333;
    border-color: #555;
}

.tsg-moon-x-actions-2 {
    display: flex;
    gap: 20px;
    margin-top: auto;
}

.tsg-moon-x-share-button {
    background: #39c832;
    color: #000000;
    border: none;
    border-radius: 12px;
    padding: 18px 35px;
    font-size: 30px;
    font-family: 'Poppins';
    font-weight: 500;
    cursor: pointer;
    display: flex
;
    align-items: center;
    gap: 10px;
    flex: 1;
    justify-content: center;
    transition: all 0.2s 
ease;
}



.tsg-moon-x-share-button img {
    width: 38px;
}
.tsg-moon-x-share-icon-img {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

.tsg-moon-x-close-button {
    background: #FF4444;
    color: white;
    font-family: 'Poppins';
    border: none;
    border-radius: 12px;
    padding: 18px 35px;
    font-size: 30px;
    font-weight: 500;
    cursor: pointer;
    flex: 1;
    transition: all 0.2s ease;
}

.tsg-moon-x-close-button:hover {
    background: #CC3333;
    transform: translateY(-1px);
}

/* Moon X Responsive Design */
@media (max-width: 1200px) {
    .tsg-moon-x-container-2 {
        width: 100%;
        max-width: 1019px;
        height: auto;
        min-height: 969px;
    }
}

@media (max-width: 1000px) {
    .tsg-moon-x-container-1 {
        width: 100%;
        max-width: 936px;
        height: auto;
        min-height: 624px;
    }
    
    .tsg-moon-x-metrics-2 {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .tsg-moon-x-actions-2 {
        flex-direction: column;
    }
}

/* ========================================
   BINANCE DESIGN 6 - MY ASSETS (554x1200px)
   ======================================== */

.tsg-binance-background-6 {
    width: 554px;
    height: 1200px;
    background: #000000;
    position: relative;
    font-family: 'Manrope', sans-serif;
    overflow: hidden;
}

/* Status Bar */
.tsg-binance-status-bar-6 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 20px;
    z-index: 10;
}

.tsg-binance-time-6 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
}

.tsg-binance-status-icons-6 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tsg-binance-network-icons-6 {
    width: 85%;
    margin-left: 10px;

}

.tsg-binance-battery-icon-6 {
    display: flex;
    align-items: center;
    gap: 4px;
}

.tsg-binance-battery-img-6 {
    width: 24px;
    height: 12px;
}

.tsg-binance-battery-text-6 {
    color: #ffffff;
    font-size: 17px;
    font-weight: 600;
}

/* Header */
.tsg-binance-header-6 {
    position: absolute;
    top: 80px;
    left: 20px;
    right: 20px;
}

.tsg-binance-title-6 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 700;
    margin: 0;
    line-height: 1.2;
}

/* Alert Banner */
.tsg-binance-alert-banner-6 {
    position: absolute;
    top: 135px;
    left: 20px;
    right: 20px;
    height: 48px;
    background: #8e580063;
    border-radius: 8px;
    display: flex;
    align-items: center;
    padding: 0 16px;
    gap: 12px;
}

.tsg-binance-megaphone-icon-6 {
    font-size: 16px;
    color: #ffffff;
}

.tsg-binance-megaphone-icon-6 i {
    font-size: 16px;
}

.tsg-binance-alert-text-6 {
    color: #ffffffcc;
    font-size: 16px;
    letter-spacing: 1px;
    font-weight: 500;
    flex: 1;
}

.tsg-binance-chevron-down-6 {
    color: #ffffff;
    font-size: 14px;
}

.tsg-binance-chevron-down-6 i {
    font-size: 14px;
}

/* Total Assets Card */
.tsg-binance-total-assets-card-6 {
    position: absolute;
    top: 200px;
    left: 20px;
    right: 20px;
    height: 160px;
    background: #16171c;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.tsg-binance-total-assets-header-6 {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.tsg-binance-total-assets-label-6 {
    color: #8a8a8a;
    font-size: 18px;
    font-weight: 500;
}

.tsg-binance-eye-icon-6 {
    font-size: 14px;
    color: #838383;
}

.tsg-binance-eye-icon-6 i {
    font-size: 14px;
}

.tsg-binance-total-assets-value-6 {
    display: flex
;
    align-items: flex-end;
    gap: 8px;
    margin-bottom: 10px;
}

.tsg-binance-main-value-6 {
    color: #ffffff;
    font-size: 45px;
    font-weight: 700;
    line-height: 1.2;
}

.tsg-binance-chevron-down-small-6 {
    color: #8a8a8a;
    font-size: 12px;
}

.tsg-binance-chevron-down-small-6 i {
    font-size: 12px;
}

.tsg-binance-btc-equivalent-6 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tsg-binance-btc-text-6 {
    color: #8a8a8a;
    font-size: 16px;
    font-weight: 500;
}

.tsg-binance-eye-icon-small-6 {
    font-size: 12px;
    color: #838383;
}

.tsg-binance-eye-icon-small-6 i {
    font-size: 12px;
}

/* Action Buttons */
.tsg-binance-action-buttons-6 {
    position: absolute;
    top: 370px;
    left: 20px;
    right: 20px;
    height: 80px;
}

.tsg-binance-action-buttons-img-6 {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* My Accounts Section */
.tsg-binance-accounts-section-6 {
    position: absolute;
    top: 500px;
    left: 20px;
    right: 20px;
}

.tsg-binance-accounts-title-6 {
    color: #ffffff;
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 16px 0;
}

.tsg-binance-account-card-6 {
    background: #16161e;
    border-radius: 8px;
    margin-bottom: 12px;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tsg-binance-account-info-6 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tsg-binance-account-name-6 {
    color: #8a8a8a;
    font-size: 19px;
    font-weight: 500;
}

.tsg-binance-account-value-6 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
}

.usd-style-6 {

    color: #cfcfcf;
    font-size: 19px;
    font-weight: 500;

}

.tsg-binance-arrow-right-6 {
    color: #8a8a8a;
    font-size: 14px;
}

.tsg-binance-arrow-right-6 i {
    font-size: 22px;
}

/* Bottom Navigation */
.tsg-binance-bottom-nav-6 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 130px;
}

.tsg-binance-footer-img-6 {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* Responsive adjustments for mobile */
@media (max-width: 600px) {
    .tsg-binance-background-6 {
        width: 100%;
        max-width: 554px;
        height: auto;
        min-height: 1200px;
    }
}

/* ============================================
   BINANCE DESIGN 7 - WALLET/ASSETS (548x1176px)
   ============================================ */

.tsg-binance-background-7 {
    position: relative;
    width: 548px;
    height: 1176px;
    background: #FFFFFF;
    overflow: hidden;
    font-family: 'Poppins', 'Helvetica Neue', sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    padding: 0 16px;
}

/* Status Bar */
.tsg-binance-status-bar-7 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 44px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    z-index: 10;
}

.tsg-binance-time-7 {
    color: #000000;
    font-size: 20px;
    font-weight: 600;
}

.tsg-binance-status-icons-7 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tsg-binance-battery-icon-7 {
    width: 120px;
    height: auto;
    object-fit: contain;
}




/* Header */
.tsg-binance-header-7 {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 0 16px;
}

.tsg-binance-main-tabs-7 {
    display: flex;
    justify-content: center;
    margin-bottom: 20px;
}

.tsg-binance-toggle-7 {
    width: 265px;
    height: auto;
    object-fit: contain;
}

.tsg-binance-tab-7 {
    font-size: 18px;
    font-weight: 500;
    padding: 12px 0;
}

.tsg-binance-tab-inactive-7 {
    color: #999999;
    background: transparent;
}

.tsg-binance-tab-active-7 {
    color: #000000;
    background: #FFFFFF;
    font-weight: bold;
    border-bottom: 2px solid #FCD535;
}

.tsg-binance-sub-tabs-7 {
    display: flex;
    align-items: center;
    gap: 28px;
    margin-bottom: 20px;
}

.tsg-binance-sub-tab-7 {
    font-size: 21px;
    font-weight: 500;
    padding: 8px 0;
}

.tsg-binance-sub-tab-inactive-7 {
    color: #969696;
}

.tsg-binance-sub-tab-active-7 {
    color: #000000;
    font-weight: 600;
    border-bottom: 2px solid #FCD535;
}

.tsg-binance-header-icons-7 {
    margin-left: auto;
    display: flex;
    gap: 16px;
}

.tsg-binance-header-icon-7 {
    width: 87px;
    object-fit: contain;
}

/* Total Value Section */
.tsg-binance-total-value-section-7 {
    position: absolute;
    top: 200px;
    left: 16px;
    right: 16px;
}

.tsg-binance-total-value-header-7 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tsg-binance-total-value-label-7 {
    color: #353535;
    font-size: 18px;
    font-weight: 500;
}

.tsg-binance-eye-icon-7 {
    color: #FCD535;
    font-size: 14px;
}

.tsg-binance-total-value-main-7 {
    margin-bottom: 16px;
}

.tsg-binance-btc-row-7 {
    display: flex    ;
        gap: 8px;
        margin-bottom: 4px;
        align-items: flex-end;
}

.tsg-binance-btc-value-7 {
    color: #000000;
    font-size: 44px;
    font-weight: 600;
}
.cucusign {font-size: 20px;}



.tsg-binance-btc-arrow-7 {
    color: #666666;
    font-size: 14px;
}

.tsg-binance-fiat-equivalent-7 {
    color: #969696;
    font-size: 20px;
    font-weight: 500;
}

.tsg-binance-pnl-section-7 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tsg-binance-pnl-label-7 {
    color: #000;
    font-size: 18px;
    font-weight: 500;
}

.tsg-binance-pnl-value-7 {
    color: #03C75A;
    font-size: 18px;
    font-weight: 600;
}

.tsg-binance-pnl-arrow-7 {
    color: #c6c6c6;
    font-size: 14px;
}

/* Action Buttons */
.tsg-binance-action-buttons-7 {
    position: absolute;
    top: 385px;
    left: 16px;
    right: 16px;
    margin-bottom: 20px;
}

.tsg-binance-action-buttons-img-7 {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Crypto/Account Tabs */
.tsg-binance-crypto-tabs-7 {
    position: absolute;
    top: 480px;
    border-top: solid 2px #d7d7d7;
    padding-top: 10px;
    left: 16px;
    right: 16px;
    display: flex
;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tsg-binance-crypto-tab-7 {
    font-size: 20px;
    font-weight: 500;
    padding: 8px 0;
}

.tsg-binance-crypto-tab-inactive-7 {
    color: #999999;
}

.tsg-binance-crypto-tab-active-7 {
    color: #000000;
    font-weight: bold;
    border-bottom: 2px solid #FCD535;
}

.tsg-binance-crypto-icons-7 {
    display: flex;
    gap: 16px;
}

.tsg-binance-crypto-icon-7 {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

/* Asset List */
.tsg-binance-asset-list-7 {
    position: absolute;
    top: 550px;
    left: 16px;
    right: 16px;
}

.tsg-binance-asset-row-7 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 0;
    border-bottom: 1px solid #F5F5F5;
}

.tsg-binance-asset-icon-7 {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 16px;
    font-weight: 600;
}



.tsg-binance-asset-left-7 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tsg-binance-asset-right-7 {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
}

.tsg-binance-asset-info-7 {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.tsg-binance-asset-ticker-7 {
    color: #000000;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.tsg-binance-asset-name-7 {
    color: #9f9f9f;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

.tsg-binance-asset-tag-7 {
    color: #FCD535;
    font-size: 10px;
    font-weight: 500;
    background: rgba(252, 213, 53, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    display: inline-block;
    margin-bottom: 4px;
}

.tsg-binance-asset-value-7 {
    color: #000000;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.2;
}

.tsg-binance-asset-btc-7 {
    color: #9f9f9f;
    font-size: 15px;
    font-weight: 500;
    line-height: 1.2;
}

.tsg-binance-asset-pnl-7 {
    color: #03C75A;
    font-size: 12px;
    font-weight: 500;
    text-align: right;
    margin-right: 8px;
}

.tsg-binance-asset-cost-7 {
    color: #666666;
    font-size: 12px;
    font-weight: 400;
    text-align: right;
    margin-right: 8px;
}

/* Bottom Navigation */
.tsg-binance-bottom-nav-7 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 100px;
}

.tsg-binance-footer-img-7 {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* ============================================
   BINANCE DESIGN 8 - DEFI WALLET (946x1125px)
   ============================================ */

.tsg-binance-background-8 {
    position: relative;
    width: 946px;
    height: 1125px;
    background: #1F2631;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: scale(0.75);
    transform-origin: top left;
}

/* Status Bar */
.tsg-binance-status-bar-8 {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 120px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0px 54px;
    z-index: 10;
}

.tsg-binance-time-8 {
    color: #ffffff;
    font-size: 32px;
    font-weight: 600;
}

.tsg-binance-status-icons-8 {
    display: flex;
    align-items: center;
    gap: 8px;
}

.tsg-binance-signal-8 {
    font-size: 16px;
}

.tsg-binance-network-text-8 {
    color: #ffffff;
    font-size: 22px;
    font-weight: 500;
}

.tsg-binance-battery-icon-8 {
    color: #ffffff;
    font-size: 28px;
    margin-right: 4px;
}

.tsg-binance-battery-percentage-8 {
    color: #ffffff;
    font-size: 28px;
    font-weight: 600;
}

/* Header */
.tsg-binance-header-8 {
    position: absolute;
    top: 130px;
    left: 0;
    right: 0;
    padding: 0 50px;
    display: flex;
    align-items: center;
    gap: 16px;
    justify-content: space-between;
}

.tsg-binance-back-arrow-8 {
    color: #a6a6a6;
    font-size: 40px;
    font-weight: 600 !important;
}

.tsg-binance-title-8 {
    color: #ffffff;
    font-size: 45px;
    font-weight: 600;
    margin: 0;
}

/* Wallet Overview */
.tsg-binance-wallet-overview-8 {
    position: absolute;
    top: 250px;
    left: 30px;
    right: 30px;
    border-bottom: solid 2px #ffffff17;
    padding-bottom: 30px;
}

.tsg-binance-wallet-top-8 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tsg-binance-wallet-selector-8 {
    background: #2b3139;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 120px;
}

.tsg-binance-wallet-name-8 {
    color: #ffffff;
    font-size: 14px;
    font-weight: 500;
}

.tsg-binance-wallet-chevron-8 {
    color: #8a8a8a;
    font-size: 12px;
}



.tsg-binance-balance-value-8 {
    color: #ffffff;
    font-size: 64px;
    font-weight: 700;
}

.tsg-binance-wallet-actions-8 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tsg-binance-balance-section-8 {
    display: flex;
    padding: 0 24px;
    align-items: center;
    justify-content: space-between;
}

.tsg-binance-action-icon-8 {
    width: 40px;
    height: 40px;
    background: #2b3139;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tsg-binance-grid-icon-8,
.tsg-binance-more-icon-8 {
    color: #ffffff;
    font-size: 16px;
}

.tsg-binance-transfer-button-8 {
    background: #2b3139;
    border-radius: 8px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.tsg-binance-transfer-icon-8 {
    color: #f0b90b;
    font-size: 16px;
}

.tsg-binance-transfer-text-8 {
    color: #ffffff;
    font-size: 16px;
    font-weight: 500;
}

/* Assets Section */
.tsg-binance-assets-section-8 {
    position: absolute;
    top: 520px;
    left: 60px;
    right: 60px;
}

.tsg-binance-assets-header-8 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 20px;
}

.tsg-binance-assets-title-8 {
    color: #ffffff;
    font-size: 38px;
    font-weight: 600;
}

.tsg-binance-assets-arrow-8 {
    color: #8a8a8a;
    font-size: 14px;
}

.tsg-binance-asset-list-8 {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.tsg-binance-asset-row-8 {
    display: flex;
    align-items: center;
    padding: 16px 0;
}

.tsg-binance-asset-icon-8 {
    width: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 16px;
    font-size: 16px;
    font-weight: 600;
}

.tsg-binance-asset-info-8 {
    flex: 1;
}

.tsg-binance-asset-quantity-8 {
    color: #ffffff;
    font-size: 34px;
    font-weight: 500;
    margin-bottom: 2px;
}

.tsg-binance-asset-name-8 {
    color: #8a8a8a;
    font-size: 30px;
    font-weight: 500;
}

.tsg-binance-asset-usd-8 {
    color: #ffffff;
    font-size: 34px;
    font-weight: 600;
    text-align: right;
}

/* ============================================
   BINANCE DESIGN 9 - MY ASSETS WITH PNL (1283x1107px)
   ============================================ */

.tsg-binance-background-9 {
    position: relative;
    width: 1283px;
    height: 1107px;
    background: #222631;
    overflow: hidden;
    font-family: 'Manrope', sans-serif;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    transform: scale(0.75);
    transform-origin: top left;
}

/* PNL Summary */
.tsg-binance-pnl-summary-9 {
    position: absolute;
    top: 60px;
    left: 40px;
    right: 40px;
}

.tsg-binance-pnl-header-9 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.tsg-binance-pnl-label-9 {
    color: #ffffff;
    font-size: 40px;
    font-weight: 500;
}

.tsg-binance-info-icon-9 {
    color: #8a8a8a;
    font-size: 14px;
    background: #8a8a8a;
    color: #222631;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 10px;
    font-weight: bold;
}

.tsg-binance-pnl-value-9 {
    display: flex    ;
        align-items: center;
        gap: 30px;
        justify-content: flex-start;
}

.tsg-binance-pnl-amount-9 {
    color: #02c076;
    font-size: 44px;
    font-weight: 600;
}

.tsg-binance-pnl-arrow-9 {
    color: #8a8a8a;
    font-size: 16px;
}

/* Action Buttons */
.tsg-binance-action-buttons-9 {
    position: absolute;
    top: 210px;
    left: 40px;
    right: 40px;
}

.tsg-binance-action-buttons-img-9 {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* Convert Banner */
.tsg-binance-convert-banner-9 {
    position: absolute;
    top: 430px;
    left: 40px;
    right: 40px;
    background: #2a303c;
    border-radius: 8px;
    padding: 29px 34px;
    display: flex
;
    align-items: center;
    justify-content: space-between;
}

.tsg-binance-convert-text-9 {
    color: #dfba36;
    font-size: 32px;
    font-weight: 500;
}

.tsg-binance-convert-arrow-9 {
    color: #ffffff4d;
    font-size: 40px;
}

/* Display Options */
.tsg-binance-display-options-9 {
    position: absolute;
    top: 590px;
    left: 40px;
    right: 40px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.tsg-binance-hide-zero-9 {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tsg-binance-checkbox-9  {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    width: 32px;
    height: 32px;
    border-radius:100%;
    background-color: #f5d659 !important;
  
    position: relative;
}

/* style quand c’est coché */
.tsg-binance-checkbox-9:checked {
    background-color: #f5d659 !important; /* jaune */
    /* tu peux changer la bordure aussi */
  }
  
  /* ajouter le tick, avec ::after ou ::before */
  .tsg-binance-checkbox-9:checked::after {
    content: "✔";
    color: #000;
    position: absolute;
    top: -2px;
    left: 5px;
    font-size: 27px;
  }

.tsg-binance-checkbox-label-9 {
    color: #939393;
    font-size: 32px;
    font-weight: 500;
    padding-left: 21px;
}

.tsg-binance-search-icon-9 {
    color: #8a8a8a;
    font-size: 40px;
}

/* Asset List */
.tsg-binance-asset-list-9 {
    position: absolute;
    top: 680px;
    left: 40px;
    right: 40px;
}


.tsg-binance-separate-9{
    height: 20px;
    width: 100%;
    background-color: #191e24;
    position: absolute;
    top: 355px;
}

.tsg-binance-asset-row-9 {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 0;
    border-bottom: 1px solid #1e2329;
}

.tsg-binance-asset-left-9 {
    display: flex;
    align-items: center;
    gap: 16px;
}

.tsg-binance-asset-right-9 {
    text-align: right;
}

.tsg-binance-asset-icon-9 {
    width: 60px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    font-weight: 600;
}

.tsg-binance-asset-info-9 {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.tsg-binance-asset-name-9 {
    color: #ffffff;
    font-size: 40px;
    font-weight: 500;
}

.tsg-binance-asset-subtitle-9 {
    color: #8a8a8a;
    font-size: 30px;
    font-weight: 400;
}

.tsg-binance-asset-quantity-9 {
    color: #ffffff;
    font-size: 40px;
    font-weight: 500;
    margin-bottom: 4px;
}

.tsg-binance-asset-usd-9 {
    color: #8a8a8a;
    font-size: 35px;
    font-weight: 400;
}

/* ============================================
   CRYPTO SELECTION POPUP
   ============================================ */

.tsg-crypto-popup {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 999999;
}

.tsg-crypto-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
}

.tsg-crypto-popup-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #ffffff;
    border-radius: 12px;
    width: 90%;
    max-width: 500px;
    max-height: 80vh;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    overflow: hidden;
}

.tsg-crypto-popup-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
    background: #f8f9fa;
}

.tsg-crypto-popup-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

.tsg-crypto-popup-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.2s;
}

.tsg-crypto-popup-close:hover {
    background-color: #e0e0e0;
}

.tsg-crypto-popup-search {
    padding: 20px;
    border-bottom: 1px solid #e0e0e0;
}

.tsg-crypto-popup-search input {
    width: 100%;
    padding: 12px 16px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.tsg-crypto-popup-search input:focus {
    border-color: #007bff;
}

.tsg-crypto-popup-list {
    max-height: 400px;
    overflow-y: auto;
    padding: 10px 0;
    display: block !important;
    visibility: visible !important;
}

.tsg-crypto-item {
    display: flex !important;
    align-items: center;
    padding: 12px 20px;
    cursor: pointer;
    transition: background-color 0.2s;
    border-bottom: 1px solid #f0f0f0;
    visibility: visible !important;
    opacity: 1 !important;
}

.tsg-crypto-item:hover {
    background-color: #f8f9fa;
}

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

.tsg-crypto-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    margin-right: 12px;
    object-fit: cover;
}

.tsg-crypto-info {
    flex: 1;
}

.tsg-crypto-symbol {
    font-weight: 600;
    font-size: 14px;
    color: #333;
    margin-bottom: 2px;
}

.tsg-crypto-name {
    font-size: 12px;
    color: #666;
}

.tsg-crypto-price {
    font-size: 12px;
    color: #007bff;
    font-weight: 500;
}

.tsg-crypto-popup-loading {
    text-align: center;
    padding: 40px;
    color: #666;
    font-size: 14px;
}

/* Crypto management buttons */
.tsg-crypto-add-btn {
    position: relative;
    display: block;
    margin: 20px auto;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #007bff;
    color: white;
    border: none;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.3);
    transition: all 0.2s;
    z-index: 1000;
}

/* Hide crypto management buttons during screenshot */
.tsg-screenshot-mode .tsg-crypto-add-row,
.tsg-screenshot-mode .tsg-crypto-edit-btn,
.tsg-screenshot-mode .tsg-crypto-delete-btn {
    display: none !important;
}

/* Crypto add row styles */
.tsg-crypto-add-row:hover {
    opacity: 1 !important;
    background-color: rgba(0, 123, 255, 0.05);
}

.tsg-crypto-add-icon {
    transition: all 0.2s;
}

.tsg-crypto-add-row:hover .tsg-crypto-add-icon {
    background: #007bff !important;
    color: white !important;
    border-color: #007bff !important;
}

.tsg-crypto-add-btn:hover {
    background: #0056b3;
    transform: scale(1.05);
}



.tsg-crypto-asset-icon:hover .tsg-crypto-edit-btn {
    opacity: 1;
}

.tsg-crypto-delete-btn {
    position: absolute;
    top: -8px;
    right: -8px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #dc3545;
    color: white;
    border: none;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.tsg-crypto-asset-row:hover .tsg-crypto-delete-btn {
    opacity: 1;
}

/* Specific styles for Binance designs 7, 8, 9 */
.tsg-binance-asset-row-7,
.tsg-binance-asset-row-8,
.tsg-binance-asset-row-9 {
    position: relative !important;
}

.tsg-binance-asset-row-7 .tsg-crypto-edit-btn,
.tsg-binance-asset-row-8 .tsg-crypto-edit-btn,
.tsg-binance-asset-row-9 .tsg-crypto-edit-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: rgb(255 255 255 / 70%);
    color: #000000;
    border: none;
    font-size: 12px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.tsg-binance-asset-row-7 .tsg-crypto-delete-btn,
.tsg-binance-asset-row-8 .tsg-crypto-delete-btn,
.tsg-binance-asset-row-9 .tsg-crypto-delete-btn {
    position: absolute;
    top: -12px;
    right: -12px;
    width: 25px;
    height: 25px;
    border-radius: 50%;
    background: rgb(188 24 24);
    color: white;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.2s;
    z-index: 10;
}

.tsg-binance-asset-row-7:hover .tsg-crypto-edit-btn,
.tsg-binance-asset-row-8:hover .tsg-crypto-edit-btn,
.tsg-binance-asset-row-9:hover .tsg-crypto-edit-btn {
    opacity: 1;
}

.tsg-binance-asset-row-7:hover .tsg-crypto-delete-btn,
.tsg-binance-asset-row-8:hover .tsg-crypto-delete-btn,
.tsg-binance-asset-row-9:hover .tsg-crypto-delete-btn {
    opacity: 1;
}

/* Ensure the icon container is positioned relatively for absolute positioning of buttons */
.tsg-binance-asset-icon-7,
.tsg-binance-asset-icon-8,
.tsg-binance-asset-icon-9 {
    position: relative;
}
