.stock-page {
    max-width: var(--medium-width);
    margin: 0 auto;
    padding: 30px;
}

.stock-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.stock-input {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.input-section {
    background: #fff;
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.section-title {
    font-size: 18px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.input-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

.input-grid-2col {
    grid-template-columns: repeat(2, 1fr);
}

.input-item {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.input-item label {
    font-size: 13px;
    color: #64748b;
    font-weight: 500;
}

.input-item input {
    padding: 12px 14px;
    border-radius: 8px;
    border: 2px solid #e2e8f0;
    font-size: 14px;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.input-item input:focus {
    outline: none;
    border-color: #3b82f6;
}

.stock-result {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.result-hero {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    color: #fff;
}

.result-label {
    font-size: 14px;
    font-weight: 500;
    opacity: 0.9;
    margin-bottom: 8px;
}

.result-value {
    font-size: 48px;
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 8px;
}

.result-value.profit {
    color: #22c55e;
}

.result-value.loss {
    color: #ef4444;
}

.result-rate {
    font-size: 24px;
    font-weight: 600;
    opacity: 0.9;
}

.result-rate.profit {
    color: #22c55e;
}

.result-rate.loss {
    color: #ef4444;
}

.result-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
}

.result-card {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.card-label {
    font-size: 12px;
    color: #64748b;
    margin-bottom: 8px;
    display: block;
}

.card-value {
    font-size: 20px;
    font-weight: 700;
    color: #1e293b;
}

.result-detail {
    background: #fff;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
}

.detail-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 16px;
}

.detail-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.detail-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.detail-label {
    font-size: 13px;
    color: #64748b;
}

.detail-value {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
}

.fee-explanation {
    background: #f8fafc;
    border-radius: 12px;
    padding: 20px;
}

.explanation-title {
    font-size: 14px;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 12px;
}

.fee-explanation ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

.fee-explanation li {
    font-size: 13px;
    color: #64748b;
    line-height: 1.8;
    padding-left: 20px;
    position: relative;
}

.fee-explanation li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: #3b82f6;
    font-weight: bold;
}

@media (max-width: 1024px) {
    .stock-container {
        grid-template-columns: 1fr;
    }

    .input-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .input-grid:nth-child(3) {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .stock-page {
        padding: 16px;
    }

    .input-grid {
        grid-template-columns: 1fr;
    }

    .input-grid:nth-child(3) {
        grid-template-columns: 1fr;
    }

    .result-cards {
        grid-template-columns: 1fr;
    }

    .detail-grid {
        grid-template-columns: 1fr;
    }

    .result-value {
        font-size: 32px;
    }

    .result-rate {
        font-size: 18px;
    }
}