/* Reset and base styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #1a1a1a 0%, #000000 100%);
    min-height: 100vh;
    color: #ffffff;
    overflow-x: hidden;
}

/* Container */
.container {
    max-width: 400px;
    margin: 0 auto;
    padding: 20px;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */
.header {
    text-align: center;
    margin-bottom: 30px;
    padding: 20px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 8px;
}

.header p {
    color: #b0b0b0;
    font-size: 0.95rem;
    line-height: 1.4;
}

/* Form container */
.form-container {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    margin-bottom: 20px;
}

/* Form groups */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #ffffff;
    font-size: 0.95rem;
}

/* Select styling */
select {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
    appearance: none;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23ffffff' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='m6 8 4 4 4-4'/%3e%3c/svg%3e");
    background-position: right 12px center;
    background-repeat: no-repeat;
    background-size: 16px;
    cursor: pointer;
}

select:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
}

select:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

/* Expiration field styling */
.expiration-field {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.expiration-field:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.expiration-field:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
}

.expiration-value {
    flex: 1;
}

.expiration-arrow {
    color: #ffffff;
    transition: transform 0.3s ease;
}

.expiration-field.active .expiration-arrow {
    transform: rotate(180deg);
}

/* Instrument field styling */
.instrument-field {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.instrument-field:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.instrument-field:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
}

.instrument-value {
    flex: 1;
}

.instrument-arrow {
    color: #ffffff;
    transition: transform 0.3s ease;
}

.instrument-field.active .instrument-arrow {
    transform: rotate(180deg);
}

/* Model field styling */
.model-field {
    width: 100%;
    padding: 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.model-field:hover {
    border-color: rgba(255, 255, 255, 0.4);
}

.model-field:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
}

.model-value {
    flex: 1;
}

.model-arrow {
    color: #ffffff;
    transition: transform 0.3s ease;
}

.model-field.active .model-arrow {
    transform: rotate(180deg);
}

/* Model Modal */
.model-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Instrument Modal */
.instrument-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

/* Expiration Modal */
.expiration-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.modal-content {
    position: relative;
    background: rgba(0, 0, 0, 0.9);
    border-radius: 20px 20px 0 0;
    padding: 25px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 -8px 32px rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: slideUp 0.3s ease-out;
}

.modal-header {
    text-align: center;
    margin-bottom: 20px;
}

.modal-header h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
    margin: 0;
}

/* Expiration buttons */
.expiration-buttons {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
    margin-bottom: 20px;
}

.expiration-btn {
    padding: 16px 12px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.expiration-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.expiration-btn.active {
    background: #00d4aa;
    border-color: #00d4aa;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
}

.expiration-btn:active {
    transform: translateY(0);
}

/* Modal close button */
.modal-close {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    color: white;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* Signal button */
.signal-button {
    width: 100%;
    padding: 18px;
    background: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
    color: white;
    border: none;
    border-radius: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 123, 255, 0.4);
}

.signal-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 123, 255, 0.6);
}

.signal-button:active {
    transform: translateY(0);
}

.signal-button.loading .button-text {
    opacity: 0;
}

.signal-button.loading .loading-spinner {
    opacity: 1;
}

/* Loading spinner */
.loading-spinner {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
    opacity: 0;
    transition: opacity 0.3s ease;
}

@keyframes spin {
    to {
        transform: translate(-50%, -50%) rotate(360deg);
    }
}

/* Result container */
.result-container {
    margin-top: 20px;
    animation: slideUp 0.5s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Signal card */
.signal-card {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 20px;
    padding: 25px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #f8f9fa;
}

.signal-header h3 {
    color: #ffffff;
    font-size: 1.3rem;
    font-weight: 700;
}

.signal-time {
    font-size: 0.85rem;
    color: #b0b0b0;
    font-weight: 500;
}

/* Signal direction */
.signal-direction {
    text-align: center;
    margin-bottom: 25px;
    padding: 20px;
    border-radius: 15px;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.direction-label {
    display: block;
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 8px;
    font-weight: 500;
}

.direction-value {
    font-size: 2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
}

.direction-value.buy {
    color: #28a745;
    text-shadow: 0 2px 4px rgba(40, 167, 69, 0.3);
}

.direction-value.sell {
    color: #dc3545;
    text-shadow: 0 2px 4px rgba(220, 53, 69, 0.3);
}

/* Signal parameters */
.signal-params {
    margin-bottom: 20px;
}

.param {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #f1f3f4;
}

.param:last-child {
    border-bottom: none;
}

.param-label {
    font-weight: 600;
    color: #b0b0b0;
    font-size: 0.9rem;
}

.param-value {
    font-weight: 500;
    color: #ffffff;
    font-size: 0.95rem;
}



/* Responsive design */
@media (max-width: 480px) {
    .container {
        padding: 15px;
    }
    
    .header h1 {
        font-size: 1.6rem;
    }
    
    .form-container {
        padding: 20px;
    }
    
    select {
        padding: 12px;
    }
    
    .signal-button {
        padding: 15px;
        font-size: 1rem;
    }
    
    .expiration-buttons {
        gap: 8px;
    }
    
    .expiration-btn {
        padding: 12px 8px;
        font-size: 0.9rem;
    }
    
    .modal-content {
        padding: 20px;
        border-radius: 15px 15px 0 0;
    }
    
    .modal-header h3 {
        font-size: 1.2rem;
    }
    
    .model-btn {
        padding: 15px 12px;
        font-size: 1rem;
    }
}

/* Search container */
.search-container {
    position: relative;
    margin-bottom: 20px;
}

.search-input {
    width: 100%;
    padding: 12px 40px 12px 15px;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    font-size: 1rem;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    transition: all 0.3s ease;
}

.search-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.search-input:focus {
    outline: none;
    border-color: #007bff;
    box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.2);
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: rgba(255, 255, 255, 0.6);
}

/* Categories section */
.categories-section {
    margin-bottom: 20px;
}

.categories-title {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 12px;
    letter-spacing: 1px;
}

.categories-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.category-btn {
    width: 100%;
    padding: 12px 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
}

.category-btn:hover:not(.locked) {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
}

.category-btn.active {
    background: rgba(0, 123, 255, 0.2);
    border-color: #007bff;
    color: #ffffff;
}

.category-btn.locked {
    opacity: 0.5;
    cursor: not-allowed;
}

/* Instruments list */
.instruments-list {
    max-height: 250px;
    overflow-y: auto;
    margin-bottom: 20px;
}

.instrument-item {
    width: 100%;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border: 2px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: left;
    margin-bottom: 8px;
}

.instrument-item:hover {
    background: rgba(255, 255, 255, 0.1);
    border-color: rgba(255, 255, 255, 0.2);
    transform: translateX(5px);
}

.instrument-item.selected {
    background: rgba(0, 123, 255, 0.3);
    border-color: #007bff;
}

/* Custom scrollbar for instruments list */
.instruments-list::-webkit-scrollbar {
    width: 4px;
}

.instruments-list::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 2px;
}

.instruments-list::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 2px;
}

.instruments-list::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* Model buttons */
.model-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 20px;
}

.model-btn {
    width: 100%;
    padding: 18px 15px;
    background: rgba(255, 255, 255, 0.1);
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    color: #ffffff;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    letter-spacing: 1px;
}

.model-btn:hover {
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

.model-btn.active {
    background: #00d4aa;
    border-color: #00d4aa;
    color: #fff;
    box-shadow: 0 4px 15px rgba(0, 212, 170, 0.4);
}

.model-btn:active {
    transform: translateY(0);
}

/* Dark theme support for Telegram */
@media (prefers-color-scheme: dark) {
    body {
        background: linear-gradient(135deg, #343a40 0%, #212529 100%);
    }
    
    .header,
    .form-container,
    .signal-card {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .header h1,
    .form-group label,
    .signal-header h3,
    .param-label,
    .param-value {
        color: #fff;
    }
    
    select {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        border-color: rgba(255, 255, 255, 0.2);
    }
    
    select:focus {
        border-color: #6c757d;
    }
    
    .signal-direction {
        background: rgba(255, 255, 255, 0.05);
    }
    
    .expiration-btn {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
    
    .expiration-btn:hover {
        background: rgba(255, 255, 255, 0.15);
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .expiration-field {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
    
    .expiration-field:hover {
        border-color: rgba(255, 255, 255, 0.3);
    }
    
    .modal-content {
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
    }
    
    .modal-header h3 {
        color: #fff;
    }
    
    .model-field {
        background: rgba(255, 255, 255, 0.1);
        border-color: rgba(255, 255, 255, 0.2);
        color: #fff;
    }
    
    .model-field:hover {
        border-color: rgba(255, 255, 255, 0.3);
    }
}

/* Toast notifications */
.toast-notification {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%) translateY(-100px);
    background: rgba(0, 0, 0, 0.9);
    color: #ffffff;
    padding: 15px 20px;
    border-radius: 12px;
    font-size: 0.95rem;
    font-weight: 500;
    z-index: 10000;
    min-width: 200px;
    max-width: 90%;
    text-align: center;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0;
    transition: all 0.3s ease;
}

.toast-notification.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

.toast-notification.toast-error {
    background: rgba(220, 53, 69, 0.9);
    border-color: rgba(220, 53, 69, 0.3);
}

.toast-notification.toast-warning {
    background: rgba(255, 193, 7, 0.9);
    color: #000000;
    border-color: rgba(255, 193, 7, 0.3);
}

.toast-notification.toast-success {
    background: rgba(40, 167, 69, 0.9);
    border-color: rgba(40, 167, 69, 0.3);
}

/* Animations */
.form-group {
    animation: fadeInUp 0.6s ease-out;
    animation-fill-mode: both;
}

.form-group:nth-child(1) { animation-delay: 0.1s; }
.form-group:nth-child(2) { animation-delay: 0.2s; }
.form-group:nth-child(3) { animation-delay: 0.3s; }
.signal-button { animation-delay: 0.4s; }

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* User status styles */
.user-status {
    margin-top: 15px;
    padding: 12px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.status-badge {
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.status-badge.vip {
    background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
    color: #000000;
    box-shadow: 0 2px 10px rgba(255, 215, 0, 0.4);
}

.status-badge.regular {
    background: rgba(255, 255, 255, 0.15);
    color: #ffffff;
}

.deposit-info {
    font-size: 0.9rem;
    color: #b0b0b0;
}

.deposit-info strong {
    color: #ffffff;
}

/* VIP Modal */
.vip-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 2000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
    padding: 20px;
    box-sizing: border-box;
}

.vip-modal .modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
}

.vip-modal-content {
    position: relative;
    background: rgba(0, 0, 0, 0.95);
    border-radius: 20px;
    padding: 30px 25px;
    max-width: 400px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 2001;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: vipSlideUp 0.3s ease;
}

.vip-modal-content h3 {
    margin: 0 0 15px 0;
    color: #ffffff;
    font-size: 1.5rem;
    text-align: center;
    font-weight: 700;
}

.vip-condition {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin: 15px 0;
    font-size: 1rem;
}

.vip-have {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    padding: 14px;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    margin: 15px 0;
    font-size: 1rem;
}

.vip-benefits-title {
    font-weight: 600;
    color: #ffffff;
    margin: 20px 0 12px 0;
    font-size: 1.05rem;
}

.vip-benefits-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
}

.vip-benefits-list li {
    padding: 12px 15px;
    margin: 8px 0;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    font-size: 0.95rem;
    color: #ffffff;
    border-left: 3px solid #667eea;
}

.vip-message {
    text-align: center;
    color: #667eea;
    font-weight: 600;
    margin: 20px 0 10px 0;
    font-size: 0.95rem;
}

.vip-modal .modal-close {
    width: 100%;
    padding: 14px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.vip-modal .modal-close:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.4);
}

/* Блокировка элементов */
.model-btn.locked {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
    pointer-events: auto !important;
}

.model-btn.locked:hover {
    transform: none !important;
    box-shadow: none !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

.category-btn.locked {
    opacity: 0.5;
    cursor: not-allowed !important;
    background: rgba(255, 255, 255, 0.03) !important;
    pointer-events: auto !important;
}

.category-btn.locked:hover {
    transform: none !important;
    background: rgba(255, 255, 255, 0.03) !important;
    border-color: rgba(255, 255, 255, 0.1) !important;
}

.instrument-item.locked {
    opacity: 0.4 !important;
    cursor: not-allowed !important;
    pointer-events: auto !important;
}

.instrument-item.locked:hover {
    transform: none !important;
    background: rgba(255, 255, 255, 0.05) !important;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

@keyframes vipSlideUp {
    from {
        transform: scale(0.9);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Signal Loading Modal */
.signal-loading-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.modal-overlay-signal {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    backdrop-filter: blur(10px);
}

.signal-loading-content {
    position: relative;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 24px;
    padding: 30px 25px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 3001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.loading-header {
    text-align: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.signal-icon {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.loading-title,
.result-title {
    color: #ffffff;
    font-size: 1.5rem;
    font-weight: 700;
    margin: 10px 0;
}

.model-info {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    font-weight: 500;
}

/* Analysis Stages */
.analysis-stages {
    margin-bottom: 30px;
}

.stage-item {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 16px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 16px;
    margin-bottom: 12px;
    border: 2px solid rgba(255, 255, 255, 0.1);
    transition: all 0.4s ease;
}

.stage-item.active {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.2) 0%, rgba(56, 142, 60, 0.2) 100%);
    border-color: #4CAF50;
    box-shadow: 0 4px 20px rgba(76, 175, 80, 0.3);
}

.stage-item.completed {
    background: rgba(76, 175, 80, 0.15);
    border-color: rgba(76, 175, 80, 0.3);
}

.stage-icon {
    font-size: 1.8rem;
    min-width: 40px;
    text-align: center;
}

.stage-info {
    flex: 1;
}

.stage-title {
    font-size: 1rem;
    font-weight: 600;
    color: #ffffff;
    margin-bottom: 4px;
}

.stage-subtitle {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.6);
}

.stage-check {
    font-size: 1.5rem;
    color: #4CAF50;
    min-width: 30px;
    text-align: center;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s ease;
}

.stage-item.completed .stage-check {
    opacity: 1;
    transform: scale(1);
}

/* Progress Container */
.progress-container {
    margin-top: 20px;
}

.progress-bar {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 12px;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4aa 0%, #00a896 100%);
    border-radius: 10px;
    width: 0%;
    transition: width 0.3s ease;
    box-shadow: 0 0 15px rgba(0, 212, 170, 0.5);
}

.progress-text {
    text-align: center;
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.95rem;
    font-weight: 600;
}

/* Signal Result Modal */
.signal-result-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 3000;
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeIn 0.3s ease;
}

.signal-result-content {
    position: relative;
    background: linear-gradient(135deg, #2a2a2a 0%, #1a1a1a 100%);
    border-radius: 24px;
    padding: 30px 25px;
    max-width: 420px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    z-index: 3001;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.1);
    animation: scaleIn 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-header {
    text-align: center;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

/* Direction Indicator */
.direction-indicator {
    text-align: center;
    margin: 30px 0;
}

.direction-circle {
    width: 120px;
    height: 120px;
    margin: 0 auto 15px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.direction-circle.up {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3) 0%, rgba(56, 142, 60, 0.3) 100%);
    border: 3px solid #4CAF50;
    box-shadow: 0 0 30px rgba(76, 175, 80, 0.4);
}

.direction-circle.down {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.3) 0%, rgba(211, 47, 47, 0.3) 100%);
    border: 3px solid #f44336;
    box-shadow: 0 0 30px rgba(244, 67, 54, 0.4);
}

.direction-arrow {
    font-size: 4rem;
    font-weight: bold;
    animation: pulse 2s ease-in-out infinite;
}

.direction-circle.up .direction-arrow {
    color: #4CAF50;
}

.direction-circle.down .direction-arrow {
    color: #f44336;
}

.direction-text {
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: 2px;
}

.direction-text.up {
    color: #4CAF50;
    text-shadow: 0 0 20px rgba(76, 175, 80, 0.5);
}

.direction-text.down {
    color: #f44336;
    text-shadow: 0 0 20px rgba(244, 67, 54, 0.5);
}

/* Signal Info Grid */
.signal-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin: 25px 0;
}

.info-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 14px;
}

.info-label {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.6);
    font-weight: 600;
    margin-bottom: 6px;
    letter-spacing: 0.5px;
}

.info-value {
    font-size: 1.1rem;
    color: #ffffff;
    font-weight: 700;
}

/* Bottom Info Grid */
.bottom-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    margin: 25px 0;
}

.bottom-card {
    background: linear-gradient(135deg, rgba(0, 212, 170, 0.15) 0%, rgba(0, 168, 150, 0.15) 100%);
    border: 2px solid rgba(0, 212, 170, 0.3);
    border-radius: 16px;
    padding: 20px;
    text-align: center;
}

.bottom-value {
    font-size: 2rem;
    font-weight: 800;
    color: #00d4aa;
    margin-bottom: 8px;
    text-shadow: 0 0 15px rgba(0, 212, 170, 0.4);
}

.bottom-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.7);
    font-weight: 600;
    letter-spacing: 1px;
}

/* Signal Close Button */
.signal-close-btn {
    width: 100%;
    padding: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0.05) 100%);
    color: #ffffff;
    border: 2px solid rgba(255, 255, 255, 0.2);
    border-radius: 14px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 10px;
}

.signal-close-btn:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.15) 0%, rgba(255, 255, 255, 0.1) 100%);
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(255, 255, 255, 0.2);
}

/* Animations */
@keyframes scaleIn {
    from {
        transform: scale(0.8);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
    }
    50% {
        transform: scale(1.1);
    }
}

/* Responsive adjustments */
@media (max-width: 480px) {
    .signal-loading-content,
    .signal-result-content {
        padding: 25px 20px;
        max-width: 95%;
    }
    
    .stage-item {
        padding: 12px;
        gap: 12px;
    }
    
    .stage-icon {
        font-size: 1.5rem;
        min-width: 35px;
    }
    
    .stage-title {
        font-size: 0.9rem;
    }
    
    .stage-subtitle {
        font-size: 0.75rem;
    }
    
    .direction-circle {
        width: 100px;
        height: 100px;
    }
    
    .direction-arrow {
        font-size: 3.5rem;
    }
    
    .direction-text {
        font-size: 1.8rem;
    }
    
    .bottom-value {
        font-size: 1.8rem;
    }
    
    .info-value {
        font-size: 1rem;
    }
} 