        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
        }

        :root {
            --primary: #3a86ff;
            --primary-dark: #2667cc;
            --success: #2ecc71;
            --success-dark: #27ae60;
            --danger: #e74c3c;
            --danger-dark: #c0392b;
            --warning: #f39c12;
            --dark: #1a1a2e;
            --light: #f8f9fa;
            --gray: #6c757d;
            --card-bg: #ffffff;
            --shadow: rgba(0, 0, 0, 0.1);
            --long-bg: rgba(46, 204, 113, 0.1);
            --short-bg: rgba(231, 76, 60, 0.1);
        }

        body {
            background-color: #0f1117;
            color: #e4e6eb;
            line-height: 1.6;
            padding: 20px;
            min-height: 100vh;
            background-image: linear-gradient(135deg, #0f1117 0%, #1a1d29 100%);
        }

        .container {
            max-width: 1400px;
            margin: 0 auto;
        }

        header {
            text-align: center;
            margin-bottom: 30px;
            padding: 20px;
        }

        h1 {
            color: var(--light);
            margin-bottom: 10px;
            font-size: 2.5rem;
            background: linear-gradient(90deg, var(--primary), var(--success));
            -webkit-text-fill-color: transparent;
        }

        .subtitle {
            color: var(--gray);
            font-size: 1.1rem;
            max-width: 800px;
            margin: 0 auto;
        }

        .calculator-container {
            display: flex;
            flex-wrap: wrap;
            gap: 30px;
            margin-bottom: 40px;
        }

        .input-section, .results-section {
            flex: 1;
            min-width: 300px;
            background-color: rgba(26, 26, 46, 0.8);
            border-radius: 15px;
            padding: 30px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .section-title {
            font-size: 1.5rem;
            margin-bottom: 25px;
            color: var(--light);
            display: flex;
            align-items: center;
            gap: 10px;
            padding-bottom: 10px;
            border-bottom: 1px solid rgba(255, 255, 255, 0.1);
        }

        .section-title i {
            color: var(--primary);
        }

        .input-group {
            margin-bottom: 20px;
        }

        label {
            display: block;
            margin-bottom: 8px;
            font-weight: 600;
            color: #b0b3b8;
        }

        input, select {
            width: 100%;
            padding: 14px;
            background-color: rgba(255, 255, 255, 0.05);
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            font-size: 1rem;
            transition: all 0.3s;
            color: var(--light);
        }

        input:focus, select:focus {
            outline: none;
            border-color: var(--primary);
            box-shadow: 0 0 0 3px rgba(58, 134, 255, 0.2);
            background-color: rgba(255, 255, 255, 0.08);
        }

        .currency-input {
            position: relative;
        }

        .currency-symbol {
            position: absolute;
            right: 15px;
            top: 50%;
            transform: translateY(-50%);
            font-weight: 600;
            color: var(--gray);
        }

        .position-type {
            display: flex;
            gap: 15px;
            margin-bottom: 20px;
        }

        .position-btn {
            flex: 1;
            padding: 15px;
            border: 2px solid rgba(255, 255, 255, 0.1);
            border-radius: 10px;
            background-color: rgba(255, 255, 255, 0.05);
            color: #b0b3b8;
            font-weight: 600;
            cursor: pointer;
            text-align: center;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .position-btn.active {
            border-color: transparent;
        }

        .long-btn.active {
            background-color: var(--long-bg);
            color: var(--success);
            border-color: var(--success);
        }

        .short-btn.active {
            background-color: var(--short-bg);
            color: var(--danger);
            border-color: var(--danger);
        }

        .button-group {
            display: flex;
            gap: 15px;
            margin-top: 30px;
        }

        button {
            flex: 1;
            padding: 16px;
            border: none;
            border-radius: 10px;
            font-size: 1rem;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s;
            display: flex;
            align-items: center;
            justify-content: center;
            gap: 10px;
        }

        .calculate-btn {
            background: linear-gradient(135deg, var(--primary), var(--primary-dark));
            color: white;
        }

        .reset-btn {
            background-color: rgba(255, 255, 255, 0.05);
            color: var(--gray);
            border: 2px solid rgba(255, 255, 255, 0.1);
        }

        .calculate-btn:hover {
            transform: translateY(-3px);
            box-shadow: 0 5px 15px rgba(58, 134, 255, 0.4);
        }

        .reset-btn:hover {
            background-color: rgba(255, 255, 255, 0.1);
            transform: translateY(-3px);
        }

        .result-card {
            background: linear-gradient(135deg, rgba(26, 26, 46, 0.8), rgba(40, 40, 60, 0.8));
            border-radius: 10px;
            padding: 25px;
            margin-bottom: 20px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .result-title {
            font-size: 1rem;
            color: var(--gray);
            margin-bottom: 8px;
            display: flex;
            align-items: center;
            gap: 8px;
        }

        .result-value {
            font-size: 2.2rem;
            font-weight: 700;
        }

        .profit {
            color: var(--success);
        }

        .loss {
            color: var(--danger);
        }

        .neutral {
            color: var(--light);
        }

        .warning {
            color: var(--warning);
        }

        .profit-breakdown {
            background-color: rgba(26, 26, 46, 0.6);
            border-radius: 10px;
            padding: 20px;
            margin-top: 25px;
            border: 1px solid rgba(255, 255, 255, 0.05);
        }

        .breakdown-title {
            font-size: 1.2rem;
            margin-bottom: 15px;
            color: var(--light);
        }

        .breakdown-item {
            display: flex;
            justify-content: space-between;
            padding: 12px 0;
            border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        }

        .breakdown-item:last-child {
            border-bottom: none;
        }

        .breakdown-label {
            color: #b0b3b8;
        }

        .breakdown-value {
            font-weight: 600;
        }

        .liquidation-warning {
            background-color: rgba(243, 156, 18, 0.1);
            border: 1px solid rgba(243, 156, 18, 0.3);
            border-radius: 10px;
            padding: 20px;
            margin-top: 20px;
            display: flex;
            align-items: center;
            gap: 15px;
        }

        .liquidation-icon {
            font-size: 1.5rem;
            color: var(--warning);
        }

        .liquidation-text {
            flex: 1;
        }

        .liquidation-title {
            font-weight: 600;
            color: var(--warning);
            margin-bottom: 5px;
        }

        .risk-indicator {
            height: 10px;
            border-radius: 5px;
            background-color: rgba(255, 255, 255, 0.1);
            margin: 15px 0;
            overflow: hidden;
        }

        .risk-fill {
            height: 100%;
            border-radius: 5px;
            transition: width 0.5s ease;
        }

        .risk-low {
            background-color: var(--success);
        }

        .risk-medium {
            background-color: var(--warning);
        }

        .risk-high {
            background-color: var(--danger);
        }

        .risk-labels {
            display: flex;
            justify-content: space-between;
            font-size: 0.85rem;
            color: var(--gray);
            margin-bottom: 5px;
        }

        footer {
            text-align: center;
            color: var(--gray);
            padding: 20px;
            margin-top: 20px;
            font-size: 0.9rem;
            border-top: 1px solid rgba(255, 255, 255, 0.05);
        }

        .crypto-icons {
            display: flex;
            justify-content: center;
            gap: 20px;
            margin: 20px 0;
            flex-wrap: wrap;
        }

        .crypto-icon {
            font-size: 2rem;
            color: var(--primary);
            transition: transform 0.3s;
        }

        .crypto-icon:hover {
            transform: translateY(-5px);
        }

        .position-summary {
            display: flex;
            justify-content: space-between;
            margin-bottom: 20px;
            padding: 15px;
            border-radius: 10px;
            font-weight: 600;
        }

        .long-position {
            background-color: var(--long-bg);
            color: var(--success);
            border-left: 5px solid var(--success);
        }

        .short-position {
            background-color: var(--short-bg);
            color: var(--danger);
            border-left: 5px solid var(--danger);
        }

        /* Responsive Styles */
        @media (max-width: 992px) {
            .calculator-container {
                flex-direction: column;
            }
            
            .input-section, .results-section {
                width: 100%;
            }
            
            h1 {
                font-size: 2rem;
            }
        }

        @media (max-width: 768px) {
            .position-type {
                flex-direction: column;
            }
            
            .button-group {
                flex-direction: column;
            }
            
            .result-value {
                font-size: 1.8rem;
            }
        }

        @media (max-width: 480px) {
            body {
                padding: 10px;
            }
            
            .input-section, .results-section {
                padding: 20px;
            }
            
            .section-title {
                font-size: 1.3rem;
            }
            
            .result-value {
                font-size: 1.5rem;
            }
        }
